Skip to content

Annotations

You can use Kubernetes annotations to attach arbitrary non-identifying metadata to objects. Clients such as tools and libraries can retrieve this metadata. Annotations, like labels, are key/value maps.

Annotations can be added to any object by simply doing:

oc annotate <object_type> <object_name> <key>=<value>

Here are some examples that use annotations:


Last update: December 11, 2023