1 min read | by Jordi Prats
On Kubernetes there are two main ways of attaching metedata to objects un Kubernetes: Labels and Annotation.
What's the difference? When should I choose one over the other?
We can take a look at the Kubernetes documentation:
The definition of Annotations is quite generic: They are intented to be able to attach arbitrary non-identifying metadata to objects.
Labels are intended to:
But the key is the following:
Non-identifying information should be recorded using annotations
In a nutshell:
Posted on 01/03/2022