Kubernetes interview question
What are the pod lifecycle phases, and how do you use them for debugging?
Definition Asked in DevOps Engineer · Site Reliability Engineer (SRE) · Cloud Engineer interviews
Summary
A pod moves through Pending, Running, Succeeded, Failed and Unknown phases. The phase tells you where in the lifecycle the problem is: scheduling (Pending), runtime (Running with restarts), completion (Succeeded/Failed) or communication (Unknown).
Keep reading with a membership
The full answer with examples, key points and comparisons is part of the membership, along with every other interview answer, progress tracking and Daily Review. Most-asked answers stay free to read.
More Kubernetes questions
- Deployment, StatefulSet, DaemonSet, Job and CronJob: when do you use each?
- What is the difference between resource requests and limits, and what are the QoS classes?
- What are Kubernetes namespaces, when should you create them, and what isolation do they provide?
- Write a Kubernetes Deployment and Service for a web API with probes, resource requests and a rolling update strategy.
- Describe the Kubernetes architecture: what runs on the control plane and what runs on the nodes?
- How does the scheduler place pods? Explain resource requests, node affinity, taints and tolerations.
- What happens, step by step, when you run kubectl apply for a Deployment?
- How do you make pods shut down gracefully without dropping requests?