Options (2)
booleanLabel a pod
Example:
kubectl label {{[po|pods]}} {{pod_name}} {{key}}={{value}}-f, --filenamebooleanLabel a pod identified by the pod definition file
Example:
kubectl label {{[-f|--filename]}} {{pod_definition_file}} {{key}}={{value}}Examples (5)
Label a pod
kubectl label [po|pods] pod_name key=valueUpdate a pod label by overwriting the existing value
kubectl label [po|pods] pod_name key=value --overwriteLabel all pods in the namespace
kubectl label [po|pods] key=value --allLabel a pod identified by the pod definition file
kubectl label [-f|--filename] pod_definition_file key=valueRemove the label from a pod
kubectl label [po|pods] pod_name key-made by @shridhargupta | data from tldr-pages