Summary
This chapter was dense and contained a huge amount of information on networking in general when applied to Kubernetes. Services are just like Pods: they are the foundation of Kubernetes, and mastering them is crucial to being successful with the orchestrator.
Overall, in this chapter, we discovered that Pods have dynamic IP assignment, and they get a unique IP address when they're created. To establish a reliable way to connect to your Pods, you need a proxy called Service
in Kubernetes. We've also discovered that Kubernetes services can be of multiple types and that each type of service is designed to address a specific need. We've also discovered what ReadinessProbe
and LivenessProbe
are and how they can help you in designing health checks to ensure your pods gets traffic when they are ready and live.
Lastly, we discovered how to control traffic flow between Pods by using an additional object called NetworkPolicy
that behaves like a networking firewall...