kubectl label

Add or change labels

high risk

interactive breakdown — edit the command and press Explain
$ 
⚠ Risks & cautions
Safer / dry-run alternatives
kubectl get <res> --show-labelsReview current labels
What it does

Edits labels on objects. See the flags and examples below, and run `man kubectl` for the full reference.

Common flags
FlagMeaning
--overwrite --overwriteReplace existing label
Examples
kubectl label node n1 role=gpuLabel a node · explain & risk-check →
Related
kubectl annotate
Open the full explainer →More in Kubernetes & Helm

Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.