A multi-NIC pod connects one Kubernetes pod to multiple networks. Anthos on bare metal provides this capability through a Multus CNI implementation, supporting data-plane and management-plane separation, performance, security, and network-flow isolation. Kubernetes exposes the default interface as eth0 and additional interfaces as net1, net2, and so on. section 8.3.2
Configure the capability in three stages:
- Enable multipleNetworkInterfaces: true under the clusterNetwork section of the Anthos bare metal cluster custom resource. section 8.3.2
- Define each additional network with a NetworkAttachmentDefinition, selecting an additional CNI such as IPvlan, MacVLAN, Bridge, or SR-IOV. section 8.3.2
- Assign networks to pods or deployments with the k8s.v1.cni.cncf.io/networks annotation, using each attachment’s namespace and name. section 8.3.2
