Network troubleshooting
We’ve established how to get your pods up and running. Now, we’ll tackle the next crucial step: making them talk to each other and the outside world. This is where Kubernetes networking comes in, with the Service object at its core. A Service provides a stable IP address and DNS name for a group of pods, but simple misconfigurations can easily break this vital link. This section will guide you through diagnosing these common networking problems.
Service connectivity: Missing endpoints
The connection between a Service and its pods is the most fundamental concept in Kubernetes networking. An interviewer will expect you to know that a Service doesn’t connect to pods directly, but rather through a label-selector mechanism. A Service with no endpoints is a classic problem that tests this core knowledge. Your ability to quickly diagnose a label mismatch demonstrates a solid understanding of how Kubernetes service discovery works.
...