Accessing the kubernetes cluster using the dns (web url) instead of the IP Address

Rajesh Amara 1 Reputation point

I deployed a docker image to Azure Kubernetes Cluster. I am able to access the application via IP Address. How do I create a web app and point to the AKS and access the application vis an url instead of the IP Address. Unable to find this information in any of the help docs

Azure Kubernetes Service (AKS)
Azure Kubernetes Service (AKS)
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
1,992 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,383 questions
{count} votes

2 answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,901 Reputation points Microsoft Employee

    @Rajesh Amara Apologies for the delay in response.

    The simplest way to do this is to create a DNS CNAME record which points to the FQDN of your AKS cluster.

    Use the command az aks show -n <CLUSTER_NAME> -g <RESOURCE_GROUP> -o json which will return the domain name under the key "fqdn".

    Please let me know if you require more information.

    Please 'Accept as answer' if it helped, so that it can help others in the community looking for help on similar topics

    1 person found this answer helpful.
    0 comments No comments

  2. Mostefa Kamal Lala 1 Reputation point

    The other option is if you had already merge the cluster kube configuration with
    az aks get-credentials
    you can find the address in the .kube/config file.
    The fqdn will in clusters.cluster[*].server

    0 comments No comments