Skip to content

Please note: There will be a service break on Mahti on Tuesday 1 April from 08:00 to 21:00. Click here for more information.

Basic level

You need a knowledge of OpenShift CLI tool oc and kubernetes annotations

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: