Accessing RabbitMQ using svc.cluster.local URL

12/3/2020

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?

-- Chethan S.
azure-aks
kubernetes
kubernetes-helm
rabbitmq

1 Answer

12/4/2020

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.

-- Chethan S.
Source: StackOverflow