CmdID

CmdID / kubectl

kubectl annotate

Update the annotations on a resource kubectl reference

18 options Its page in the kubectl reference

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

Options

18 in the kubectl reference
--all-namespaces, -AIf present, list the requested object(s) across all namespaces.
--allSelect all resources in the namespace of the specified resource types
--allow-missing-template-keysIf true, ignore any errors in templates when a field or map key is missing in the template.
--dry-runMust be "none", "server", or "client".
--field-managerName of the manager used to track field ownership.
--field-selectorSelector (field query) to filter on, supports '=', '==', and '!='.(e.g. --field-selector key1=value1,key2=value2).
--filename, -fidentifying the resource.
--help, -hhelp for annotate
--kustomize, -kProcess a kustomization directory.
--listIf true, display the annotations for a given resource.
--localIf true, annotation will NOT contact api-server but run locally.
--output, -oOutput format.
--overwriteIf true, allow annotations to be overwritten, otherwise reject annotation updates that overwrite existing annotations.
--recursive, -RProcess the directory used in -f, --filename recursively.
--resource-versionIf non-empty, the annotation update will only succeed if this is the current resource-version for the object.
--selector, -lSelector (label query) to filter on, supports '=', '==', and '!='.(e.g. -l key1=value1,key2=value2)
--show-managed-fieldsIf true, keep the managedFields when printing objects in JSON or YAML format.
--templateTemplate string or path to template file to use when -o=go-template, -o=go-template-file.