Back to Glossary
Kubernetes

What is Label?

Key-value metadata attached to Kubernetes objects for identification and selection.

Labels are key-value pairs attached to Kubernetes objects (Pods, Nodes, Services). They are used to identify and select groups of objects. Services use label selectors to find the pods they should route traffic to. HPA uses label selectors to find the pods it scales. Node selectors use node labels for pod placement. Labels are indexed for efficient lookups. Annotations are similar but for non-identifying metadata (tool configs, descriptions).

Test your knowledge of Label and 130 other DevOps concepts