Master node labelling inconsistent (label kubernetes.io/role: master
missing) #3600
Description
Describe the bug
When creating a cluster, the label kubernetes.io/role: master
is missing on the master nodes in some cases:
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/instance-type=Standard_E2s_v3
beta.kubernetes.io/os=linux
failure-domain.beta.kubernetes.io/region=westeurope
failure-domain.beta.kubernetes.io/zone=0
kubernetes.azure.com/cluster=fw7407kpej-maxtestin1-d1
kubernetes.azure.com/role=master
kubernetes.io/arch=amd64
kubernetes.io/hostname=k8s-master-73918563-0
kubernetes.io/os=linux
This happens sporadically, not for every cluster. For most of the clusters (created with exactly the same aks-engine version, kubernetes version and API model) it is present on the master nodes:
Labels: beta.kubernetes.io/arch=amd64
beta.kubernetes.io/instance-type=Standard_E2s_v3
beta.kubernetes.io/os=linux
failure-domain.beta.kubernetes.io/region=westeurope
failure-domain.beta.kubernetes.io/zone=0
kubernetes.azure.com/cluster=ccl7pxm9i6-maxtestin1-d1
kubernetes.azure.com/role=master
kubernetes.io/arch=amd64
kubernetes.io/hostname=k8s-master-25489055-0
kubernetes.io/os=linux
kubernetes.io/role=master
node-role.kubernetes.io/master=
We rely on this label (kubernetes.io/role: master
) for the cluster-autoscaler deployment (we are using the same node selector as in the example here: https://github.com/kubernetes/autoscaler/blob/master/cluster-autoscaler/cloudprovider/azure/examples/cluster-autoscaler-vmss-master.yaml#L159).
Why does this happen (randomly)?
The existence of which label can we rely on? kubernetes.azure.com/role=master
?
Steps To Reproduce
Impaired cluster with missing label:
ExportedTemplate-deploy-fw7407kpej-maxtestin1-d1-kub 2.zip
Cluster with label present:
ExportedTemplate-deploy-ccl7pxm9i6-maxtestin1-d1-kub 2.zip
Expected behavior
The label kubernetes.io/role: master
should be present on all master nodes and the node labelling should be consistent.
AKS Engine version
v0.44.2
Kubernetes version
1.16.1
Additional context
Activity