Skip to main content
mastering ckad certified kubernetes application developer

Solutions: Advanced Topics Exercises

1 min read Chapter 70 of 87
Summary

Complete solutions for all three exercises from Chapter...

Complete solutions for all three exercises from Chapter 23, covering Helm chart installation with custom values and rollback, StatefulSet deployment with headless Service and persistent storage verification, and DaemonSet creation with node selector targeting.

Solutions: Advanced Topics Exercises

This chapter provides complete, verified solutions for the three exercises at the end of Chapter 23. These exercises cover Helm release management, StatefulSet deployment with stable DNS and persistent storage, and DaemonSet targeting with node labels.

How to use these solutions:

  1. Attempt the exercise first. Spend at least 15 minutes on each exercise before looking at the solution. The process of debugging a failed Helm install or tracing why a StatefulSet Pod is stuck in Pending teaches more than reading a correct answer.

  2. Compare your approach. There are multiple valid ways to achieve each result. Focus on whether the outcome matches: Is the release deployed? Are the Pods named correctly? Does the DaemonSet respect the node selector?

  3. Run the verification steps. Every solution includes specific commands and expected output. Run them against your own cluster to confirm your implementation works.

  4. Study the troubleshooting notes. Each solution lists common mistakes. If your DaemonSet shows zero desired Pods or your StatefulSet Pods are stuck in Pending, check whether the cause is documented here.

The solutions are organized into two sections: Helm operations (Exercise 1) and StatefulSet/DaemonSet operations (Exercises 2–3).