Service discovery within a Azure kubernetes cluster RRS feed

  • Question

  • Hi,

    I have recently registered with the free Azure trial. Previously, I have created a small minikube application. Services are deployed with ClusterIP and can communicate with each other using the  <service>.default.svc.cluster.local DNS domain. I have managed to get the 

    One thing that I am struggling to understand is how services within Microsoft Kubernetes communicate with each other.

    For example, assuming that there are two services, A and B, deployed inside a cluster deployed at .....

    If service A wants to communicate/address service B what DNS name should it use?

    Does Azure Kubernetes Service (AKS) allow ClusterIP?

    Kind Regards


    Wednesday, June 20, 2018 4:21 PM

All replies

  • Yes, the DNS name will work exactly the same, as per: https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/
    Communication is happens through the service name and AKS does allow clusterIP.
    If Service A is called "hello" and Service B is called "world". Service A would be able to ping, make requests to DNS name "world".
    For technical assistance on Azure Container Service issues, post your query here: http://stackoverflow.com/questions/tagged/azure-container-service , this helps you connect with the right experts.


    If this answer was helpful, click “Mark as Answer” or Up-Vote. To provide additional feedback on your forum experience, click here.

    Disclaimer: This response contains a reference to a third-party World Wide Web site. Microsoft is providing this information as a convenience to you. Microsoft does not control these sites and has not tested any software or information found on these sites; therefore, Microsoft cannot make any representations regarding the quality, safety, or suitability of any software or information found there. There are inherent dangers in the use of any software found on the Internet, and Microsoft cautions you to make sure that you completely understand the risk before retrieving any software from the Internet. 

    • Proposed as answer by vijisankar Wednesday, June 20, 2018 8:50 PM
    • Edited by vijisankar Wednesday, June 27, 2018 1:03 PM
    Wednesday, June 20, 2018 8:50 PM
  • Just Checking in to see if the above answer helped. If this answers your query, do click “Mark as Answer” and Up-Vote for the same. And, if you have any further query do let us know.

    Saturday, June 23, 2018 7:51 AM