Skip to content
Ameen Abozaid
Planned lessonMID-057-L08

Debugging pods

  • Lesson 8 of 10
  • Mid-level
On This Lesson 4 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 failing pod systematically.

Planned topics

  • kubectl get pods shows status; describe pod shows events (scheduling, image pull, probe failures).
  • kubectl logs <pod> and --previous for the last crashed container.
  • kubectl exec -it opens a shell; port-forward reaches a service locally.
  • Common states: ImagePullBackOff, CrashLoopBackOff, Pending, OOMKilled.
  • Check events cluster-wide: kubectl get events --sort-by=.lastTimestamp.
Draft outline details

Demonstration

table: symptom → first command → likely cause.

Check your understanding

Which flag shows logs of the crashed container?

Show answer

--previous.

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.

Continue to next lesson

Type to search levels, phases, modules and lessons.