Search code examples
kubernetesrabbitmqkubernetes-helmazure-aks

Accessing RabbitMQ using svc.cluster.local URL


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?


Solution

  • 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.