DNS names of masters instead of IP in kubeconfig file

Hello!

 When I download Kubeconfig file from Rancher UI, I see IP addresses of kubernetes masters. But I want to use DNS names because IP can be changed. Is it possible to configure Rancher to use DNS names instead of IP in kubeconfig?

Example:

Example:

Now:

apiVersion: v1
kind: Config
clusters:

I want:

apiVersion: v1
kind: Config
clusters:

Thanks!

They are basically just backups in case of emergency to access the cluster if Rancher is down. There is not anywhere to set a hostname for each node, and even if there was that’s not really much better because the set of nodes which are running the control plane can change at any time too.

So if you want a DNS name then you need to maintain a name and do SSL termination for it, as a single balancer that points to whatever control planes are healthy. See: Authorized cluster endpoint setup? .

Can I set my load balancer just for forwarding all trafic to live control plae nodes and let the nodes themselves do the termination?