I have setup a load balance service in my aks, and set annotation: service.beta.kubernetes.io/azure-dns-label-name: test
This is work, I could visit my service via test.westus3.cloudapp.azure.com.
serviceTemplates:
- name: chi-service-template
metadata:
annotations:
service.beta.kubernetes.io/azure-dns-label-name: test
spec:
ports:
- name: https
port: 8443
type: LoadBalancer
And Then, I wanted to update azure-dns-label-name to "prod", so I update and rerun my yaml
serviceTemplates:
- name: chi-service-template
metadata:
annotations:
service.beta.kubernetes.io/azure-dns-label-name: prod
spec:
ports:
- name: https
port: 8443
type: LoadBalancer
And I found annotation of the load-balance has changed to "prod" in azure portal, but dns didnot update.
I use "nslookup prod.west3.cloudapp.azure.com" , it return "ip4.network.microsoft.com can't find prod.westus3.cloudapp.azure.com: Non-existent domain"
and "nslookup test.west3.cloudapp.azure.com" still works return ip of my loadbalance service.
so my question is how to make dns name update work?