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:
- name: “cluster01”
cluster:
server: “https://rancher.my.domain/k8s/clusters/c-12345” - name: “cluster01-master01”
cluster:
server: “https://1.2.3.4:6443” - name: “cluster01-master02”
cluster:
server: “https://1.2.3.5:6443”
I want:
apiVersion: v1
kind: Config
clusters:
- name: “cluster01”
cluster:
server: “https://rancher.my.domain/k8s/clusters/c-12345” - name: “cluster01-master01”
cluster:
server: “https://master01.cluster01.my.domain:6443” - name: “cluster01-master02”
cluster:
server: “https://master02.cluster01.my.domain:6443”
Thanks!