Interview Q&A · questions with model answers
Kubernetes Interview Questions
Part of the study plan for: DevOps Engineer · Site Reliability Engineer (SRE) · Cloud Engineer
Ordered by how often they're asked. Most-asked answers are free to read in full; members see every answer and can rate their confidence on each.
-
Most asked A pod is in CrashLoopBackOff. How do you debug it?
The container starts and exits repeatedly, and Kubernetes backs off between restarts. Check kubectl describe pod (exit code, last state, events), kubectl logs <pod> --previous (logs from the crashed…
-
Most asked Your application on Kubernetes has intermittent 502/503 errors during deployments. What would you investigate?
Look at readiness and shutdown behaviour first: pods receiving traffic before they are ready (missing or wrong readiness probe), pods killed while the load balancer still routes to them (no SIGTERM…
-
Pods are stuck in Pending or ImagePullBackOff. What do you check?
Pending means the pod is not scheduled (or is waiting for volumes): look at the events in kubectl describe pod for insufficient CPU or memory, unsatisfiable affinity or taints, unbound…
-
How do you find and fix deprecated Kubernetes APIs before a cluster upgrade?
Run a tool like kubent (kube-no-trouble), pluto, or kubectl convert against your manifests and live objects to find deprecated or removed API versions, then update the apiVersion field in each…
-
What happens to workloads when a node fails?
The node controller notices the kubelet has stopped reporting, marks the node NotReady, and after the eviction timeout (via NoExecute taints with a default toleration of about five minutes) pods are…