# Labels & Selectors

> What are labels and selectors in Kubernetes, and how do Services, Deployments and kubectl use them?

Canonical: https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-labels-and-selectors
Last updated: 2026-11-28

Difficulty: Beginner

## Question

What are labels and selectors in Kubernetes, and how do Services, Deployments and kubectl use them?

*The full answer is for InternHack members. Open the page link above to read it.*

## Concepts covered

Labels, Label Selectors, matchLabels, matchExpressions, Annotations

Previous: [Ingress & Ingress Controllers](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-ingress-controllers) · Next: [ConfigMaps & Secrets](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-configmaps-and-secrets) · [All of Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)

## More Kubernetes & Orchestration questions

- [Liveness & Readiness Probes](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-liveness-readiness-probes)
- [Horizontal Pod Autoscaler (HPA)](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-hpa-basics)
- [Namespaces](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-namespaces)
- [Schedules: Affinity & Taints](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-node-affinity-taints-tolerations)
- [PV, PVC, & StorageClasses](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-persistent-volumes)
- [Rolling Updates & Rollbacks](https://www.internhack.in/learn/interview/kubernetes-orchestration/k8s-rolling-updates)

## Related

- [Learn](https://www.internhack.in/learn)
- [Interview Prep](https://www.internhack.in/learn/interview)
- [Kubernetes & Orchestration](https://www.internhack.in/learn/interview/kubernetes-orchestration)
