Kubernates: How to get the external IP of the service or the DNS attached to it in route53

1/3/2019

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?

-- gamechanger17
amazon-route53
kubernetes

1 Answer

1/3/2019

Kubernetes doesn't have the knowledge of DNS records pointing to your LB. You should use AWS CLI to get Route 53 records.

-- Quentin Revel
Source: StackOverflow