Skip to main content
mastering ckad certified kubernetes application developer

Solutions: Observability Exercises

1 min read Chapter 61 of 87
Summary

Provides complete solutions for the four observability exercises...

Provides complete solutions for the four observability exercises from Chapter 20, covering probe misconfiguration diagnosis, resource-based scheduling failures, ephemeral debug container usage, and previous container log retrieval.

Solutions: Observability Exercises

This chapter provides complete, step-by-step solutions for the four exercises from Chapter 20. Each solution includes the commands, the expected output, and the reasoning behind each diagnostic step.

What This Chapter Covers

  • Probe Configuration Solutions: Exercises 1–2 cover diagnosing and fixing a broken liveness probe (CrashLoopBackOff) and identifying why a Pod is stuck in Pending due to excessive resource requests.

  • Debugging and Logging Solutions: Exercises 3–4 cover attaching an ephemeral debug container to a running Pod and retrieving logs from a crashed container using --previous.

Work through each exercise in Chapter 20 before reading these solutions. The diagnostic reasoning — choosing the right command, interpreting the output, narrowing the root cause — is more valuable than the final answer.