Section: Nodes, Taints, and Scheduling Controls

Label node

bash
bash
kubectl label node worker-02 nodepool=general --overwrite
Explanation

Apply a scheduling label to a node.

Learn the surrounding workflow

Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.

Related commands

Same sheet · prioritizing Nodes, Taints, and Scheduling Controls
List nodes
Show node roles, versions, and internal IPs.
OpenIn sheetbashsame section
Describe node
Inspect capacity, allocatable, taints, and conditions.
OpenIn sheetbashsame section
Add taint to node
Add a taint to influence scheduling.
OpenIn sheetbashsame section
Remove taint from node
Remove a taint from a node.
OpenIn sheetbashsame section
List pods on node
See what is scheduled on a node.
OpenIn sheetbashsame section
List services
Show services across namespaces.