2.02 Labels and Selectors

- For example, here's a manifest for a Pod that has two labels environment: production and app: nginx:
Pod Labels Configuration in YAML (Click to Expand)
| Select Pods using a Label Selector | |
|---|---|
Annotation
-
Labels and selectors are primarily used to group and identify Kubernetes objects, whereas annotations serve to store additional information for reference.
-
For instance, annotations can capture details such as tool name, version, build information, and other metadata.