Skip to main content
mastering ckad certified kubernetes application developer

Solutions: Services and Networking Exercises

1 min read Chapter 37 of 87
Summary

Complete solutions for all four exercises from Chapter...

Complete solutions for all four exercises from Chapter 12, covering ClusterIP Service creation with DNS verification, Ingress routing on Kind, NetworkPolicy isolation between frontend and backend Pods, and debugging a misconfigured Service.

Solutions: Services and Networking Exercises

This chapter provides complete, verified solutions for the four exercises at the end of Chapter 12. These exercises span the entire “Services & Networking” domain — Service creation, DNS resolution, Ingress routing, NetworkPolicy enforcement, and Service debugging.

How to use these solutions:

  1. Attempt the exercise first. Spend at least 15 minutes on each exercise before looking at the solution. The struggle is where learning happens — reading the answer without attempting the problem builds false confidence.

  2. Compare your approach. Multiple valid approaches exist for most tasks. Focus on whether your result meets the stated requirements rather than matching these solutions exactly.

  3. Run the verification steps. Every solution ends with specific verification commands and expected output. Run these against your own cluster to confirm your implementation.

  4. Study the troubleshooting notes. Common mistakes and their symptoms are documented. If you encountered an error during the exercise, check whether it is listed before starting over.

The solutions are organized into two sections: the first covers Service creation, DNS resolution, and Ingress routing (Exercises 1–2), and the second covers NetworkPolicy isolation and Service debugging (Exercises 3–4).