Labels

Labels

All resources can have labels

Labels are a central concept in Kubernetes

All resources can have labels…

… and - as a matter of fact - should have labels

Labels are used for selection

Changing labels does not cause pod updates

Annotations

Annotations store meta data

No effect on the bahviour of Kubernetes

Changing annotations does not cause pod updates


More about labels and annotations

Format: [<prefix>/]<name>: <value>

<prefix>

Optional prefix must be a fully qualified sub-domain

<name>

No long than 63 characters

<value>

Values of labels must match ^[a-z0-9_\-]+$

Values of annotations can contain any character