A service-mesh style proxy sidecar must reach the application container without Service DNS. Why does connecting to localhost work inside the Pod?
Select an answer to reveal the explanation.
Short Explanation
Think of the Pod as one network apartment with one phone line: every container picks up on localhost. That shared network namespace is why a proxy sidecar can dial the app on 127.0.0.1.
Full Explanation
All containers in a Pod share the network namespace, including the IP address and port space. Processes can reach each other on localhost/127.0.0.1 using distinct ports. They do not each get separate Pod IPs. NodePort and Ingress are cluster exposure mechanisms and are not required for in-Pod localhost communication.