Interview Prep/Kubernetes/Reliability & Rollouts

What are the common causes of CrashLoopBackOff in production and how do you triage quickly?

IntermediateProductionReliability & Rollouts
Answer

Application error or bad config (check kubectl logs --previous), missing Secret/ConfigMap, OOMKilled (exit 137), failing liveness probe, permissions on mounted volumes, wrong command/entrypoint (exit 126/127), or dependency unavailable at start. Triage order: events, previous logs, exit code, probes, resources.

kubectl describe pod web-7c9d | sed -n '/Last State/,/Ready/p'
kubectl logs web-7c9d --previous --tail=100
All Kubernetes questions

More on Reliability & Rollouts