Kubernetes AKS bind domain

8/1/2018

Question regarding AKS, each time release CD. The Kubernetes will give random IP Address to my services.
I would like to know how to bind the domain to the IP?

Can someone give me some link or article to read?

-- Herman
azure
azure-aks
kubernetes

1 Answer

8/1/2018

You have two options.

You can either deploy a Service with type=LoadBalancer which will provision a cloud load balancer. You can then point your DNS entry to that provisioned LoadBalancer with (for example) a CNAME.

More information on this can be found here

Your second option is to use an Ingress Controller with an Ingress Resource. This offers much finer grained access via url parameters. You'll probably need to deploy your ingress controller pod/service with a service Type=LoadBalancer though, to make it externally accessible.

Here's an article which explains how to do ingress on Azure with the nginx-ingress-controller

-- jaxxstorm
Source: StackOverflow