Containers in a pod share their MAC address
Containers in a pod share their MAC address as well as IP address
This commit is contained in:
@@ -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.
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user