<p>I have a AKS cluster with default FQDN name with the suffix of &quot;cloudapp.azure.com&quot;. I want to get a domain and apply it to the cluster but am not sure how to apply custom domain to Kubernetes cluster in azure.</p>
<p>Can anyone help me with the steps to apply custom domain name to AKS cluster?</p>

Harish Darne
<p>If I understand you correctly, you've already deployed your application on Kubernetes and want to connect it to your custom domain name.</p>
<p>For this purpose you can use  <a href="https://github.com/kubernetes/ingress-nginx" rel="nofollow noreferrer">NGINX Ingress Controller</a>.</p>
<p>Below I will briefly describe how you can do it on AKS:</p>
<ol>
<li>First you need to create an <code>ingress controller</code> and  <code>ingress resource</code>. For Azure AKS detailed instructions can be found here:  <a href="https://learn.microsoft.com/en-us/azure/aks/ingress-static-ip#create-an-ingress-controller" rel="nofollow noreferrer">create-an-ingress-controller</a>.<br />
<strong>Note:</strong> By default, the public IP address acquired by NGINX Ingress is lost
if the controller is deleted. I recommend you to
create static public IP address, because it remains if the <code>ingress controller</code> is deleted.</li>
<li>Next identify the public IP address (<code>EXTERNAL-IP</code>) associated with
your NGINX Ingress service that was created in the previous step.</li>
<li>Now you need to create an <code>A</code> DNS record, to point your domain to the cluster.
Additionally you may
want to provide <code>CNAME</code> record, but is isn't mandatory and depends
on your    needs.<br>It is possible to create <code>Azure DNS Zone</code> for your
custom domain and then add appropriate record sets to this zone.<br />
<strong>Note:</strong> Azure DNS is not the domain registrar, you have to configure the
Azure DNS name servers as the correct name servers for
the domain name with the domain name registrar.     For more
information, see <a href="https://learn.microsoft.com/en-us/azure/dns/dns-domain-delegation" rel="nofollow noreferrer">Delegate a domain to Azure DNS</a>.</li>
</ol>
