Merge pull request #25418 from bl-ue/patch-1

Containers in a pod share their MAC address
This commit is contained in:
Kubernetes Prow Robot
2020-12-06 12:29:26 -08:00
committed by GitHub
@@ -58,10 +58,11 @@ to containers. If your job previously ran in a VM, your VM had an IP and could
talk to other VMs in your project. This is the same basic model. talk to other VMs in your project. This is the same basic model.
Kubernetes IP addresses exist at the `Pod` scope - containers within a `Pod` Kubernetes IP addresses exist at the `Pod` scope - containers within a `Pod`
share their network namespaces - including their IP address. This means that share their network namespaces - including their IP address and MAC address.
containers within a `Pod` can all reach each other's ports on `localhost`. This This means that containers within a `Pod` can all reach each other's ports on
also means that containers within a `Pod` must coordinate port usage, but this `localhost`. This also means that containers within a `Pod` must coordinate port
is no different from processes in a VM. This is called the "IP-per-pod" model. usage, but this is no different from processes in a VM. This is called the
"IP-per-pod" model.
How this is implemented is a detail of the particular container runtime in use. How this is implemented is a detail of the particular container runtime in use.