Kubernetes Pods vs Containers | K8s Networking Basics ๐Ÿ’ก

TechWorld with Nana - May 9 '20 - - Dev Community

In this video I cover one part of the broader Kubernetes Networking topic, which is container communication inside pods.

Considering Pods mostly contain only 1 main container, I start by answering the question of why having a Pod as an abstraction over container is such an important concept in Kubernetes.

I show how container port mapping is a problem with hundreds of containers, specifically how to allocate ports without getting conflicts, and how Pods solve this port allocation problem. ๐Ÿ’ช๐Ÿผ

Using containers directly, you can only use a specific port once on a server:
Port mapping without pods

The same port can be used multiple times:
Using pods

In addition, I show you in which cases you would need to run multiple containers in one pod and how these containers communicate with each other inside this pod:

Container communication inside a pod

You can find the full video here:


Complete Kubernetes Networking Course ๐ŸŽฌ:

I'm making a complete course about Kubernetes Networking, covering rest of the topics, like
โ–บ how pods communicate with each other on the same node and across hundreds of servers?
โ–บ how does the outside world communicate with K8s cluster?
โ–บ how K8s cluster plugs into the underlying infrastructure network?
โ–บ Docker Container Networking

Kubernetes Networking topics


Kubernetes 101 โ–บ Compact and easy-to-read ebook bundle ๐Ÿš€
It's a handy way to quickly look something up or refresh your knowledge at work and use it as your cheatsheet ๐Ÿ˜Ž

I'm happy to connect with you on ๐Ÿ™‚

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player