![]() ![]() Kubectl annotate pods -all description='my frontend running nginx' Kubectl annotate -overwrite pods foo description='my frontend running nginx' # Update pod 'foo' with the annotation 'description' and the value 'my frontend running nginx', overwriting any existing value Kubectl annotate -f pod.json description='my frontend' # Update a pod identified by type and name in "pod.json" Kubectl annotate pods foo description='my frontend' # If the same annotation is set multiple times, only the last value will be applied # Update pod 'foo' with the annotation 'description' and the value 'my frontend' The server as errors and exit with a non-zero exit code EXAMPLE warnings-as-errors=false Treat warnings received from version=false Print version information and quit username="" Username for basic authentication user="" The name of the kubeconfig user to token="" Bearer token for authentication to If it is not provided, the hostname used to tls-server-name="" Server name to use for Non-zero values should containĪ corresponding time unit (e.g. request-timeout="0" The length of time to waitīefore giving up on a single server request. profile-output="profile.pprof" Name of the Of (none|cpu|heap|goroutine|threadcreate|block|mutex) profile="none" Name of profile to capture. password="" Password for basic authentication match-server-version=false Require server version to kubeconfig="" Path to the kubeconfig file to insecure-skip-tls-verify=false If true, the server'sĬertificate will not be checked for validity. disable-compression=false If true, opt-out of responseĬompression for all requests to the server context="" The name of the kubeconfig context cluster="" The name of the kubeconfig cluster client-key="" Path to a client key file for certificate-authority="" Path to a cert file cache-dir="/build/.kube/cache" Default cache ![]() azure-container-registry-config="" Path to theįile containing Azure container registry configuration information. as-group= Group to impersonate for the operation, thisįlag can be repeated to specify multiple groups. User could be a regular user or a service account in a ![]() Template file to use when -o=go-template, -o=go-template-file. ManagedFields when printing objects in JSON or YAML format. show-managed-fields=false If true, keep the Matching objects must satisfy all of the specified Only valid when specifying a single resource. Useful when you want to manage related manifestsĪnnotation update will only succeed if this is the current resource-versionįor the object. R, -recursive=false Process the directory used in If not set, default to updating the existingĪnnotation value only if one already exists. If set to false, do not record the command. record=false Record current kubectl command in the Overwritten, otherwise reject annotation updates that overwrite existing overwrite=false If true, allow annotations to be Jsonpath, jsonpath-as-json, jsonpath-file). (json, yaml, name, go-template, go-template-file, template, templatefile, local=false If true, annotation will NOT contact list=false If true, display the annotations for a given This flag can't be used together with -f or -R. f, -filename= Filename, directory, or URL toįiles identifying the resource to update the annotation The server only supports a limited number of field field-selector="" Selector (field query) toįilter on, supports '=', '=', and '!='.(e.g. field-manager="kubectl-annotate" Name of the Submit server-side request without persisting the resource. The object that would be sent, without sending it. OnlyĪpplies to golang and jsonpath output formats. allow-missing-template-keys=true If true, ignore anyĮrrors in templates when a field or map key is missing in the template. A, -all-namespaces=false If true, check the all=false Select all resources, in the namespace of the Use "kubectl api-resources" for a complete list of Match the current resource version on the server the command will fail. If -resource-version is specified and does not Tools and system extensions may use annotations to storeĪttempting to set an annotation that already exists will fail Annotations are key/value pairs thatĬan be larger than labels and include arbitrary string values such as Update the annotations on one or more resources.Īll Kubernetes objects support the ability to store additionalĭata with the object as annotations. ![]() Kubectl annotate - Update the annotations on a resource SYNOPSIS ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |