InterviewDryRun
DevOps interview · Asked at junior, mid and senior level

How do you debug a pod stuck in CrashLoopBackOff?

How the interviewer asks it

“After a routine deploy, the pods of a Kubernetes service are stuck in CrashLoopBackOff. Talk me through how you find the cause, the exact commands you run, and what you look for in each.”

Typed drills are free and unlimited: the AI scores your answer against the outline below.

What the interviewer is looking for

  • You first limit user impact: is the old ReplicaSet still serving, should you roll back now?
  • A methodical order: describe, previous logs, events, then config.
  • You know the common causes: bad config or secret, failing probe, missing dependency, out of memory, wrong command.
  • You can read exit codes: 1 is an app error, 137 is a kill (often OOM), 143 is SIGTERM.

How to structure your answer

  1. 01

    Impact

    Check whether the rollout is stuck with old pods still serving; roll back with kubectl rollout undo if users are affected.

  2. 02

    Describe

    kubectl describe pod: last state, exit code, reason (OOMKilled, Error), probe failures and events.

  3. 03

    Logs

    kubectl logs --previous to read the crashed container's output, not the fresh one.

  4. 04

    Diff the deploy

    Compare the new image, environment variables, ConfigMaps and Secrets with the last good release.

  5. 05

    Fix and prevent

    Fix the cause, then add the guardrail: config validation in CI, a startup probe, sensible memory limits.

Best answers from candidates

No candidate answers yet. Type yours, and if it scores 6 or more you can show it here without your name.

Answers are shared by candidates, without names, after a privacy check. Add yours

Common mistakes

  • Reading the logs of the current container, which has just restarted and shows nothing.
  • Deleting pods repeatedly and hoping.
  • Raising the liveness probe timeout without knowing whether the probe is the cause.

Follow-up questions to expect

  • The container exits with code 137. What does that tell you, and what do you change?
  • The app needs 90 seconds to warm up. How do you set the probes?

Now answer it out loud

Max will ask you this exact question, listen to your answer, push on the weak spots with follow-ups like the ones above, and score you when you finish.

Practice with Max

Free: a 5-minute voice round and unlimited typed drills, with scored feedback. No card, and your camera is never recorded.

More devOps interview questions