当一个容器启动时, 容器里面会启动一个以太网络接口(eth0, 分配的是Pod网络所用的IP地址),通过一个虚拟以太网对(veth pair),连接到这个容器所在的Node上的对应名字空间的网络。

根据Node所用的网络网络驱动,veth的node端可以是一个逻辑网络接口,或者是一个2层的网桥。


逻辑网络接口:


eth0 connected to logical network interface on a node's default network namespace


2层网桥:


eth0 connected to a bridge interface on a node's default network namespace and bridge with an uplink