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