Diagnosing Kubernetes CrashLoopBackOff
The container repeatedly restarts.
Problem
The container repeatedly restarts.
Cause
The lab process exits with code 42.
Solution
Compare the previous container logs and Pod events. After correcting the process error, check that the Pod becomes ready.
kubectl logs POD -n NAMESPACE --previous
kubectl describe pod POD -n NAMESPACE