Skip to content
Ameen Abozaid
Planned lessonMID-057-L10

Demo: a crash-looping pod, diagnosed

  • Lesson 10 of 10
  • Mid-level
On This Lesson 3 topics

This lesson is planned. The outline below lists the topics it will cover. The full lesson has not been published yet.

In this lesson

diagnose a broken deployment from evidence. Prepares the assessment debugging exercise.

Draft outline details

Step by step

  1. kubectl get pods shows orders in CrashLoopBackOff.
  2. kubectl describe pod shows restarts and the last state; events show no image problem.
  3. kubectl logs --previous reveals a missing configuration value (database URL).
  4. Planned mistake: raise memory limits as a guess because the pod "keeps dying". Fix: read the exit reason first; the exit code and logs point to configuration, not memory.
  5. Correct the ConfigMap, roll the Deployment, confirm readiness, and write one line for the runbook.

Check your understanding

What should you read before changing limits?

Show answer

The last state reason, exit code, and previous logs.

Practice

Apply this lesson with the module's lab, exercises and quiz.

Lab and exercises Quiz

Marking a lesson complete is optional and you can undo it any time. Your progress stays in this browser.

Type to search levels, phases, modules and lessons.