Warm tip: This article is reproduced from serverfault.com, please click

Accessing RabbitMQ using svc.cluster.local URL

发布于 2020-12-03 10:41:28

I have RabbitMQ service running in an AKS (Azure Kubernetes Service) cluster as type LoadBalancer. While I am able to use the pod and service IP by providing http://<IP address>:<port number>/ to access RabbitMQ management page on VMs peered to the cluster's VNET, I am not able to access the page using http://<servicename>.<namespace>.svc.cluster.local URL with or without the ports appended. What could be done for this to work?

Questioner
Chethan S.
Viewed
0
Chethan S. 2020-12-04 17:40:13

I discovered that the svc.cluster.local URLs resolve to the cluster IP and not external IP of the Load Balancer service. I figured this out after running a nslookup <URL> from one of the pods in the namespace. I am now evaluating the possibility of setting a static IP for the external IP or use the Azure application gateway.