Patch a label onto a resource.
Section: Metadata, Labels, and Annotations
Add or update label from CLI
bash
bash
kubectl label deployment api tier=web --overwriteLearn 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 Metadata, Labels, and Annotations