Assign aksapp.io to valid DNS name

11/12/2018

I have created a web service in azure kubernetes through Visual studio and when i opened my site from the below url its working.

URL is : http://myapp.xxxxxx.xxxxxx.aksapp.io/

Now i want to assign a valid DNS name i.e. abc.com to open my web service/Website.

So is it possible that i can open my service through valid DNS name or is their any other solution to open above link from valid DNS name.

Thanks

-- Ravinder Kamboj
azure-aks
kubernetes

1 Answer

11/14/2018

Try this annotations in your service template:

service: annotations: service.beta.kubernetes.io/azure-dns-label-name: "mycustomdnsname"

This blog explains in more details. If you're using ingress, you might want to set that label on the ingress service.

-- Alessandro Vozza
Source: StackOverflow