← Nodes109 / 640
easykubectl

Add or update a label on a node for scheduling constraints and selection

command

kubectl label nodes NODE_NAME KEY=VALUE

also accepted

kubectl label nodeskubectl label nodekubectl label node NODE_NAME KEY=VALUE

Command breakdown

Part of the Kubernetes CLI (kubectl) — Nodes category.

kubectllabelnodesNODE_NAMEKEY=VALUE

Test your recall — not just your reading.

Practice with interactive quiz →