Add or change labels
high risk
kubectl get <res> --show-labelsReview current labelsEdits labels on objects. See the flags and examples below, and run `man kubectl` for the full reference.
| Flag | Meaning |
|---|---|
--overwrite --overwrite | Replace existing label |
kubectl label node n1 role=gpuLabel a node · explain & risk-check →Reference text is hand-written and may be incomplete — check man kubectl for your version. Test destructive commands on a non-production system first.