I have used external DNS with my load balancer. Now I have to print the output on my Gitlab console.
This is the service:
test-dev-service-lb-http LoadBalancer 192.20.18.123 XXXXXXXXXXXXXXX-623196XX.us-east-1.elb.amazonaws.com 443:32479/TCP
Now I can get the ELB endpoint on the console by running a command: kubectl get svc -o wide
. But I want to print the DNS attached to this ELB in Route 53 as well.
How to do that?
Kubernetes doesn't have the knowledge of DNS records pointing to your LB. You should use AWS CLI to get Route 53 records.