Options (2)
booleanAnnotate a pod
Example:
kubectl annotate {{[po|pods]}} {{pod_name}} {{key}}={{value}}-l, --selectorbooleanAnnotate all pods in a namespace with a specific label selector
Example:
kubectl annotate {{[po|pods]}} {{key}}={{value}} {{[-l|--selector]}} {{label_key}}={{label_value}}Examples (5)
Annotate a pod
kubectl annotate [po|pods] pod_name key=valueUpdate a pod annotation by overwriting the existing value
kubectl annotate [po|pods] pod_name key=value --overwriteAnnotate all pods in a namespace with a specific label selector
kubectl annotate [po|pods] key=value [-l|--selector] label_key=label_valueList all annotations a pod has
kubectl annotate [po|pods] pod_name --listRemove the annotation from a pod
kubectl annotate [po|pods] pod_name key-made by @shridhargupta | data from tldr-pages