Kubernetes Interview Questions
128 questions
The most extensive topic on this site: RBAC and security context, storage (PV/PVC/StorageClass), workloads and controllers (Deployments, StatefulSets, DaemonSets, Jobs, CronJobs), autoscaling (HPA/VPA), scheduling and affinity, networking, cluster architecture, CRDs and operators, admission control, and cluster security hardening. Every question is a realistic production scenario — a pod stuck Pending, a webhook silently breaking scheduling, a StatefulSet rollout behaving unexpectedly — not a bare definition.
Two pods that should never co-locate keep landing on the same node — what's wrong with the anti-affinity rule?
AdvancedKubernetes7 min
A critical pod gets preempted by a seemingly lower-priority pod during a resource crunch — how do you investigate and prevent it?
AdvancedKubernetes7 min
How would you dedicate a set of nodes exclusively to one team's workloads, while still letting that team's pods run elsewhere too?
AdvancedKubernetes7 min
How does the Kubernetes scheduler actually decide which node to place a pod on — walk through filtering and scoring?
IntermediateKubernetes6 min
What's the practical difference between node affinity and a plain node selector, given affinity seems strictly more powerful?
BeginnerKubernetes5 min
Why might a pod with a very specific nodeSelector never get scheduled, even though matching nodes exist with capacity?
IntermediateKubernetes6 min
A pod stays Pending with node(s) had untolerated taint — how do you diagnose it and decide toleration vs. removing the taint?
IntermediateKubernetes6 min
How would you troubleshoot a pod stuck Pending even though kubectl describe pod shows no scheduling errors at all?
ExpertKubernetes8 min
What's the difference between requiredDuringSchedulingIgnoredDuringExecution and preferredDuringSchedulingIgnoredDuringExecution, and what incident does confusing them cause?
IntermediateKubernetes5 min
How would you design pod topology spread constraints to keep a Deployment's replicas evenly distributed across availability zones?
AdvancedKubernetes7 min