What are Labels and Selectors?

Updated Apr 28, 2026

Short answer

Key-value pairs used to organize and select subsets of objects (like Pods) based on specific criteria.

Deep explanation

Kubernetes provides a framework to run distributed systems resiliently. It handles scaling and failover for your application, provides deployment patterns, and more. It operates on a declarative model where you define the 'desired state' and K8s works to maintain it.

Real-world example

Managing a web application where you need 3 copies running at all times for high availability.

Common mistakes

  • Thinking a Pod is a permanent resource
  • Pods are ephemeral and can be destroyed/recreated at any time.

Follow-up questions

  • How do you check the logs of a Pod?

More Kubernetes interview questions

View all →