-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Kubelet is not running when labeling node-role.kubernetes.io/<role> #3471
Comments
kubernetes.io / k8.sio namespace is restricted to API approved labels, this is not kind specific |
https://kubernetes.io/docs/reference/labels-annotations-taints/
Kubelet will refuse to start if an invalid kubernetes.io or k8s.io label is used. Your custom labels can also conflict with kubeadm. I recommend using a label in your own namespace, not manipulating Kubernetes's namespaces |
I can't recommend using this, the official policy is that the k8s.io and kubernetes.io namespaces are reserved for the Kubernetes project. For other third party usage, I STRONGLY encourage picking your own namespace and applying your custom labels under that. |
https://kubernetes.io/docs/reference/labels-annotations-taints/
(this is why kubelet blocks you from applying custom values under these namespaces) |
That is as clear as day, but let's say I have a cluster autoscaler and EKS. I am the one who control both and I want to have a fancy roles assigned to nodes without any crutches - I cannot do that, because node-role.kubernetes.io is reserved. Project I have mentioned solves this particular case. |
There's no guarantee that kubernetes doesn't directly do more with reserved namespaces in the future and conflict with your nonstandard usage. I would strongly encourage using your own namespace and selecting tools that will show those values or patching the tools you use. |
What happened:
Creating a cluster failed on curl to healthz path failed
Caused by adding the label node-role.kubernetes.io/worker to the node labels on the kind cluster config file
What you expected to happen:
I expected that the node will receive the label
How to reproduce it (as minimally and precisely as possible):
Creating a cluster the the label mentioned above the in the cluster config file
Environment:
kind version
):0.17.0docker info
orpodman info
): runc/etc/os-release
):centos 7kubectl version
):1.25.3The text was updated successfully, but these errors were encountered: