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 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>


Optional prefix must be a fully qualified sub-domain


No long than 63 characters


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

Values of annotations can contain any character