10. 6.1 Label に関する情報
●
https://kubernetes.io/docs/concepts/overvie
w/working-with-objects/labels/
Motivation
Labels enable users to map their own organizational structures onto system objects
in a loosely coupled fashion, without requiring clients to store these mappings.
Service deployments and batch processing pipelines are often multi-dimensional
entities (e.g., multiple partitions or deployments, multiple release tracks, multiple
tiers, multiple micro-services per tier). Management often requires cross-cutting
operations, which breaks encapsulation of strictly hierarchical representations,
especially rigid hierarchies determined by the infrastructure rather than by users.
31. 6.2 Annotation に関する情報
●
https://kubernetes.io/docs/concepts/overvie
w/working-with-objects/annotations/
Attaching metadata to objects
You can use either labels or annotations to attach metadata to Kubernetes objects.
Labels can be used to select objects and to find collections of objects that satisfy
certain conditions. In contrast, annotations are not used to identify and select objects.
The metadata in an annotation can be small or large, structured or unstructured, and
can include characters not permitted by labels.