JAEN

Kubernetes

kubectl annotate

SafeAnnotations

kubectl annotate <res> key=value

Labels select, annotations describe — change notes, controller hints. Remove with key-.

Examples

  • kubectl annotate deploy/web kubernetes.io/change-cause='hotfix 1.4.1'Record a change cause

Syntax

kubectl annotate <res> key=value [key-]

Before you run it

Metadata only.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store