글

라벨이 pod restart인 게시물 표시

CrashLoopBackOff in Kubernetes: 10 Causes and Fixes

이미지
Your pod is stuck in CrashLoopBackOff and the restart counter keeps climbing. CrashLoopBackOff is not itself an error — it is the kubelet telling you that your container started, exited, and got restarted , repeatedly, and that the kubelet is now waiting longer between each attempt. That distinction matters because it means the real error is somewhere else: in the container's exit code, in its last log lines, or in the events attached to the pod. The status is a symptom. Your job is to find the thing that made the process die. This page walks through the two commands that surface the actual failure, then ten causes ordered by how often they bite in production — each with a manifest or command that reproduces it, the fix, and a way to confirm the fix took. Error CrashLoopBackOff Where it happens Kubernetes — any distribution (EKS, GKE, AKS, k3s, minikube, kind); reported by the kubelet in kubectl get pods STATUS, any container runtime What it means The container's m...