Details
-
Task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.1.0
-
Mesosphere Sprint 42
-
3
Description
In pods, child containers share the network and UTS namespace with the parent containers. This implies that during `prepare` and `isolate` the `network/cni` isolator needs to be aware the parent-child relationship between containers to make the following decisions:
a) During `prepare` a container should be allocated a new network namespace and UTS namespace only if the container is a top level container.
b) During `isolate` the network files (/etc/hosts, /etc/hostname, /etc/resolv.conf) should be created only for top level containers. The network files for child containers will just be symlinks to the parent containers network files.