loading...
Cover image for Kubernetes Pods vs Containers | K8s Networking Basics 💡

Kubernetes Pods vs Containers | K8s Networking Basics 💡

techworld_with_nana profile image Techworld with Nana ・1 min read

kubernetes video (15 Part Series)

1) Kubernetes simply explained for beginners 2) The only Kubernetes video you need to watch to understand more about K8s than most developers 💪🏼 3 ... 13 3) Kubernetes Architecture simply explained 4) How Kubernetes makes high availability, scalability, disaster recovery possible? - with simple animations 🤩 5) What is Minikube and Kubectl? 🤔 Setup a Minikube cluster for Kubernetes Beginners 6) Kubectl Basic Commands | How to create and debug a pod in a Minikube cluster 😏 7) Kubernetes YAML File simply explained for Beginners 8) Complete Guide to setting up your Application using Kubernetes Components 9) Kubernetes Namespaces Explained in 15 mins 10) Kubernetes Ingress Tutorial for Beginners 🙌🏼 11) What is Helm in Kubernetes? 🤷🏻‍♂️ 12) Kubernetes Pods vs Containers | K8s Networking Basics 💡 13) ConfigMap and Secret as Kubernetes Volumes?! 🤔 14) How to pull image from private Docker Registry in Kubernetes cluster 🤔 15) Deployment vs StatefulSet | Kubernetes StatefulSet simply explained

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


I'm happy to connect with you on 🙂

kubernetes video (15 Part Series)

1) Kubernetes simply explained for beginners 2) The only Kubernetes video you need to watch to understand more about K8s than most developers 💪🏼 3 ... 13 3) Kubernetes Architecture simply explained 4) How Kubernetes makes high availability, scalability, disaster recovery possible? - with simple animations 🤩 5) What is Minikube and Kubectl? 🤔 Setup a Minikube cluster for Kubernetes Beginners 6) Kubectl Basic Commands | How to create and debug a pod in a Minikube cluster 😏 7) Kubernetes YAML File simply explained for Beginners 8) Complete Guide to setting up your Application using Kubernetes Components 9) Kubernetes Namespaces Explained in 15 mins 10) Kubernetes Ingress Tutorial for Beginners 🙌🏼 11) What is Helm in Kubernetes? 🤷🏻‍♂️ 12) Kubernetes Pods vs Containers | K8s Networking Basics 💡 13) ConfigMap and Secret as Kubernetes Volumes?! 🤔 14) How to pull image from private Docker Registry in Kubernetes cluster 🤔 15) Deployment vs StatefulSet | Kubernetes StatefulSet simply explained

Posted on by:

techworld_with_nana profile

Techworld with Nana

@techworld_with_nana

DevOps Consultant | YouTuber 🎬 | Software Engineer 👩🏻‍💻 Based in Austria 🇦🇹

Discussion

markdown guide
 

Hey Nana, have you ever thought of making a course? you got the knowledge and editing skills! :)

 

Hi Jashua, that's nice of you thanks :) Yes, I'm working on my first course right now, which is gonna be a complete K8s Networking tutorial.