Kubernetes Labels and Annotations

From NovaOrdis Knowledge Base
Revision as of 00:54, 7 September 2019 by Ovidiu (talk | contribs) (→‎Annotations)
Jump to navigation Jump to search

Internal


Labels

A label contains identifying information.

Labels are used by selector queries, or within selector sections of object definitions.

The structure of keys and values is constrained, so they can be evaluated quickly.

TODO: Label syntax and character set: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels/#syntax-and-character-set.

Annotations

An annotation contains non-identifying information. The information exposed by annotations is not used internally by Kubernetes. They cannot be used in selectors. The annotation keys and values are not constrained.