kubectl label node-a disktype=ssd

Category: Kubernetes & Containers

kubectl label node-a disktype=ssd

Add a label to a node

Labels node-a with disktype=ssd, a key-value pair that schedulers and selectors can match. Deployments can then target labeled nodes via nodeSelector or affinity. List existing labels with kubectl get nodes --show-labels.
Looking for more? Search all 7,657 commands — works offline, in English or Spanish, and fixes typos.