A Kubernetes service keeps restarting with CrashLoopBackOff. How do you debug and resolve this?
- Inspect pod logs for root cause of crashes
- Check readiness/liveness probe configs
- Validate environment variables and secrets
- Review resource limits (OOMKilled/CPU throttling)
- Roll back recent config changes if needed
- 💡Check init containers and secrets.
- ⚠️Not checking pod logs as the first step, leading to unnecessary investigation.
- ⚠️Overlooking the importance of `kubectl describe pod` and its events section for exit codes and other status indicators.
- ⚠️Assuming the application code is always the problem, neglecting configuration, environment variables, and secrets.
- ⚠️Not thoroughly testing readiness/liveness probes independently or ensuring their configurations match the application's behavior.
- ⚠️Failing to consider resource constraints (CPU/memory) as a potential cause for crashes, especially OOMKilled events.
- ❓How do you prevent repeated restarts?
- ❓What alerts would you add?
Ready to prove your Kubernetes administration knowledge?
Practice with free Certified Kubernetes Administrator (CKA) (CKA) exam questions. Instant answers and detailed explanations — no account required.
Start free practice quizQuestions that share similar topics with this one
Container Image Pulls Throttled by Registry
IntermediateKubernetes Pod Stuck in Pending
IntermediateK8s Readiness vs Liveness Probes
IntermediateKubernetes Pod Stuck in Pending
IntermediateContainer OOMKilled Repeatedly
IntermediateDeepen your knowledge with these related blog posts
Kubernetes Production Readiness Checklist
A practical checklist to ensure your Kubernetes clusters are production-ready. Covering security, reliability, operational safeguards, observability, and common pitfalls every team should avoid.
Chaos Engineering for Realists: Safe Experiments You Can Run This Quarter
Chaos engineering isn't about breaking production blindly. Learn safe, structured experiments you can run today to improve reliability, validate recovery plans, and strengthen SLOs.
Cost-Aware SRE: FinOps Practices Without Sacrificing Reliability
Learn how Site Reliability Engineers can balance cloud costs with reliability goals using FinOps strategies, autoscaling optimizations, and observability-driven insights.