From the course: Kubernetes and Cloud Native Associate (KCNA) Cert Prep

Unlock this course with a free trial

Join today to access over 24,700 courses taught by industry experts.

Container networking and the CNI

Container networking and the CNI

- In this video we'll talk about standardization in container networking, which is all in the CNI. So container networking starts with the network namespace. Network namespace is something that is defined by the underlying operating system. And because of the network namespace, each container can have its own IP address. Ports only need to be unique in the network namespace, so multiple containers can offer services at the same port. It is really as if they are all isolated computers. Access to containers normally happens by mapping a host port to the container port, and that is because the containers themselves are on an isolated network, which is behind the bridge. And you can compare that to network address translation, like the computers in your home network which are not directly accessible by the internet. Now, in order to work with containers, there is overlay networking. And overlay networking creates a virtual network that allows containers which are running on different…

Contents