Pods and Shared Networking
Let's discuss networking in Pods.
We'll cover the following
Access to containers
Each Pod creates its own network namespace. This includes a single IP address, a single range of TCP and UDP ports, and a single routing table. If a Pod has a single container, that container has full access to the IP, port range, and routing table. If it’s a multi-container Pod, all containers in the Pod will share the IP, port range, and routing table.
The figure below shows two Pods, each with its own IP. Even though one of them is a multi-container Pod, it still only gets a single IP.
Get hands-on with 1200+ tech skills courses.