Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 616
gamechanger17 Avatar asked Dec 07 '25 03:12

gamechanger17


1 Answers

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

like image 140
Quentin Revel Avatar answered Dec 09 '25 19:12

Quentin Revel



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!