kubectl label
Label Kubernetes resources. More information: https://kubernetes.io/docs/reference/kubectl/generated/kubectl_label/.
- Label a pod:
kubectl label =
- Update a pod label by overwriting the existing value:
kubectl label = --overwrite
- Label all pods in the namespace:
kubectl label = --all
- Label a pod identified by the pod definition file:
kubectl label =
- Remove the label from a pod:
kubectl label -
来源:tldr-pages contributors · 作者与贡献记录 · CC BY 4.0。离线整理了版式、链接和媒体显示。
