CmdID

CmdID / Commands

kubectl-annotate

Annotate Kubernetes resources. tldr-pages

On several platforms

Opens CmdID with your command. It is read in your browser and sent nowhere.

Several platforms

from tldr-pages, CC BY 4.0

Annotate a pod

kubectl annotate [po pod_name key=valueIdentify

Update a pod annotation by overwriting the existing value

kubectl annotate [po pod_name key=value --overwriteIdentify
--overwriteIf true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations. kubectl reference

Annotate all pods in a namespace with a specific label selector

kubectl annotate [po key=value --selector label_key=label_valueIdentify
--selectorSelector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2) kubectl reference

List all annotations a pod has

kubectl annotate [po pod_name --listIdentify
--listIf true, display the annotations for a given resource. kubectl reference

Remove the annotation from a pod

kubectl annotate [po pod_name key-Identify