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

Rajesh Amara 1 Reputation point
2020-06-30T14:17:25.24+00:00

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.
2,146 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,915 questions
{count} votes

2 answers

Sort by: Most helpful
  1. prmanhas-MSFT 17,906 Reputation points Microsoft Employee
    2020-07-02T14:37:09.433+00:00

    @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
    2022-06-23T18:48:39.027+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.