K8S Node Label is a small tool to label Nodes based on their role in a kubernetes cluster.
Starting from 1.16 the --node-labels flag in kubelet is deprecated for security reasons. This tool runs inside the cluster and marks a node when it starts with the "node-role.kubernetes.io/master" label.
Two more options are available:
For more details please see: https://github.com/kubernetes/enhancements/blob/master/keps/sig-architecture/2019-07-16-node-role-label-use.md
To have a similar solution available for worker nodes it also marks worker nodes with the "node-role.kubernetes.io/worker" label.
Additionally this tool supports spot instance role to mark nodes in case they are based on spot instances. Therefore it assigns the "node-role.kubernetes.io/spot-worker" label to nodes, that are part of a spot request. Currently only aws is supported, but it can be extended. Pull requests for further providers are welcome :-)
Content type
Image
Digest
sha256:00786e7ec…
Size
20.4 MB
Last updated
9 months ago
docker pull daspawnw/k8s-node-label