CrashLoopBackOff is the Kubernetes status every engineer meets sooner or later, and the name explains almost nothing. It is not an error. It is not a cause. It is Kubernetes telling you that a container keeps starting and exiting, and that the kubelet is now waiting before it tries again. The actual error is somewhere else β in the application, in the configuration, in the image, in a probe or in a resource limit β and the status column gives you three words for it, one of which is sometimes Running.
This guide shows you how to find the real cause and fix it, using the method that works in every case: read the pod's last state, read the previous container's logs, and read the events, in that order. It covers what the back-off actually does, the six common causes with their fixes, and how to stop the loop happening again.β¦