Skip to main content
mastering ckad certified kubernetes application developer

Solutions: Storage Exercises

2 min read Chapter 43 of 87
Summary

Complete solutions for all three exercises from Chapter...

Complete solutions for all three exercises from Chapter 14, covering PVC creation and mounting, emptyDir volume sharing between containers, and reclaim policy behavior with both Delete and Retain policies.

Solutions: Storage Exercises

This chapter provides complete, verified solutions for the three exercises at the end of Chapter 14. These exercises cover the core storage skills tested on the CKAD: PVC creation and mounting, inter-container volume sharing with emptyDir, and reclaim policy behavior.

How to use these solutions:

  1. Attempt the exercise first. Spend at least 15 minutes on each exercise before looking at the solution. Wrestling with YAML fields and debugging Pending PVCs is where the learning happens — reading solutions without attempting them builds false confidence.

  2. Compare your approach. Your YAML may differ from these solutions and still be correct. Focus on whether the end result meets the requirements: Is the PVC bound? Does the Pod mount the volume? Does the data persist?

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

  4. Study the troubleshooting notes. Each solution lists common mistakes. If you encountered a stuck Pending PVC or a CrashLoopBackOff Pod during the exercise, check whether the cause is documented here.

The solutions are organized into two sections: the first covers PVC creation and emptyDir sharing (Exercises 1–2), and the second covers reclaim policy observation (Exercise 3).