Quick Answer
Labels are key-value pairs used for selection รขโฌโ Deployments select their Pods by label, Services route to Pods by label. They're queryable and used by controllers. Annotations are key-value metadata for tools and humans รขโฌโ build info, CI pipeline URLs, documentation links. Annotations don't affect how Kubernetes selects or routes objects.
Answer
Labels are used for selection; annotations store metadata.
S
SugharaIQ Editorial Team
Verified Answer
This answer has been peer-reviewed by industry experts holding senior engineering roles to ensure technical accuracy and relevance for modern interview standards.