kubectl label
Labels & AnnotationsAdd or update labels
Examples
Common usage examples
Add label to pod
kubectl label pods mypod env=productionRemove label
kubectl label pods mypod env-Label all pods
kubectl label pods --all env=testUpdate existing label
kubectl label pods mypod env=staging --overwriteNotes
- Labels are key-value pairs for organization
Related Commands
You might also find these useful