Open R-Studio opened 3 months ago
It looks like, it is not allowed to set node-role.kubernetes.io/agent*
but you can set any other role if you want.
For example we set the following labels on the two node pools:
node-role.kubernetes.io/control-plane: 'true'
node-role.kubernetes.io/worker: 'true'
Unfortunately our workaround is not really working, because we cannot set the labels on the AKS node pools. Here the answer of Microsoft support:
The error message you're seeing indicates that you're trying to set a label on a Kubernetes node pool using a key that has a prefix reserved for Kubernetes' internal use. Labels with prefixes like kubernetes.io/
are reserved for use by Kubernetes itself and should not be used for custom labels.
/triage accepted /assign
I opened a related issue in the AKS project: https://github.com/Azure/AKS/issues/4628
What happened:
kube_node_role
is missing because the labelnode-role.kubernetes.io/*
is missing.node-role.kubernetes.io/*
is deprecated and the recommended substitute iskubernetes.azure.com/role=*
(more in the docs)kubernetes.azure.com/
kubernetes.io/
What you expected to happen:
kube_node_role
is available.How to reproduce it (as minimally and precisely as possible):
http://localhost:8080/metrics
.kube_node_role
and you can see there is only the description and help of the metric but no metric data:Anything else we need to know?:
kubernetes.azure.com/role=*
instead ofnode-role.kubernetes.io/*
, because it is hardcoded.kube_node_role
is very important, because we have a lot of recording- and alertingrules that uses it.Environment:
kubectl version
): 1.29.6