kubectl-label
Label Kubernetes resources. tldr-pages
On several platforms
Several platforms
Label a pod
kubectl label [po pod_name key=valueIdentifyUpdate a pod label by overwriting the existing value
kubectl label [po pod_name key=value --overwriteIdentify--overwriteIf true, allow labels to be overwritten, otherwise reject label updates that overwrite existing labels. kubectl referenceLabel all pods in the namespace
kubectl label [po key=value --allIdentify--allSelect all resources, in the namespace of the specified resource types kubectl referenceLabel a pod identified by the pod definition file
kubectl label --filename pod_definition_file key=valueIdentify--filenameFilename, directory, or URL to files identifying the resource to update the labels kubectl referenceRemove the label from a pod
kubectl label [po pod_name key-Identify