CrashLoopBackOff

Why this matters

CrashLoopBackOff means a container is repeatedly starting and crashing. It usually points to a real bug or a bad configuration. Every restart wastes resources and delays user traffic; in production this often shows up as 5xx errors, timeouts, or failing background jobs.

Tip: Always confirm kubectl config current-context and namespace before diving into logs.

Symptoms

Common root causes

How KubeGraf helps

Step-by-step using KubeGraf UI

1. Confirm the problem in the right cluster/namespace

kubectl config current-context
kubectl get pods -n <namespace>

2. Locate CrashLooping pods

3. Inspect recent events and reasons

4. Inspect logs around the crash

2025-03-22T12:01:03Z ERROR app Failed to start HTTP server: DB_CONNECTION_STRING not set
2025-03-22T12:01:03Z ERROR app Exiting with code 1

5. Check configuration linked to the pod

6. Use Incident Timeline / change history

7. Apply fix and watch recovery

kubectl rollout undo deployment/<name> -n <namespace>
kubectl edit configmap <config-name> -n <namespace>

What to check next

Common mistakes

Related issues

Expected outcome

After following this playbook you should:

[ TODO: screenshot showing KubeGraf with a CrashLoopBackOff pod selected, logs + events visible. ]