Pods and Containers – Kubernetes Networking | Container Communication inside the Pod

35 Comments



Kubernetes Networking | Kubernetes Container Networking | Kubernetes Pods and Containers | Kubernetes Container Communication | Kubernetes Container Port
► Subscribe To Me On Youtube: https://bit.ly/2z5rvTV

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. How this compares to Pods and how Pods solve this port allocation problem.
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.

❌ Correction for 6:15 in the video: Vagrant is NOT a container runtime alternative. K8s lists some of the alternatives here ► https://kubernetes.io/docs/setup/production-environment/container-runtimes/.

▬▬▬▬▬▬ 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

▬▬▬▬▬▬ T I M E S T A M P S
0:00 – Intro
0:46 – Pod – fundamental concept
1:05 – Problem with Container Port Mapping WITHOUT Pod
4:15 – Solution – Pod abstraction
6:28 – When do we need multiple containers in a pod? Side-car containers
7:08 – How do containers in a pod communicate to each other?
9:30 – pause or sandbox container
12:27 – Kubernetes Networking Topics Overview

► Reference to demo YAML Configs: https://gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/container-communication-k8s-networking

——————————————————————————————————-
Full Kubernetes and Docker tutorial ► https://bit.ly/2YGeRp9
DevOps Tools, like Ansible ► https://bit.ly/2W9UEq6
Complete K8s Application Setup ► https://youtu.be/EQNO_kM96Mo
Complete Jenkins Pipeline Tutorial ► https://youtu.be/7KCS70sCoK0

For any questions/issues/feedback, please leave me a comment and I will get back to you as soon as possible. Also please let me know what you want to learn about Docker & Kubernetes or another technology.

#kubernetesnetworking #kubernetes #kubernetestutorial #devops #techworldwithnana
——————————————————————————————————-

▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► https://bit.ly/32UVSZP
Don’t forget to subscribe ► https://bit.ly/3mO4jxT
DEV ► https://bit.ly/3h2fqiO
INSTAGRAM ► https://bit.ly/2F3LXYJ
TWITTER ► https://bit.ly/3i54PUB
LINKEDIN ► https://bit.ly/3hWOLVT

Legal Notice:
Kubernetes and the Kubernetes logo are trademarks or registered trademarks of The Linux Foundation in the United States and/or other countries. The Linux Foundation and other parties may also have trademark rights in other terms used herein. This video is not accredited, certified, affiliated with, nor endorsed by Kubernetes or The Linux Foundation.

source

35 Comments
    • blank
      Poorna Chandra
      May 05, 2022 12:27 pm Reply

      Amazing..Thank you very much Nana. This is what I've been looking for, like why do we need these many objects in k8s like pods, containers etc. I've gone through many tutorials but couldn't find the right answer. This is perfect explanation. Thank you again.

    • blank
      AJIekcaHDp Peperoni
      May 05, 2022 12:27 pm Reply

      very stupid example with port forwarding, you are so bad… just use linux and you can access to container by his ip and port. Go to learn basics, you are so noobish teacher. Don't buy this courses guys, you can find any info in google and books, she is useless and steals your money!

    • blank
      Ira Goel
      May 05, 2022 12:27 pm Reply

      Hi Nana, any plans for K8S networking course in the near future ?

    • blank
      peregineme
      May 05, 2022 12:27 pm Reply

      Thanks, looking forward to the networking course.

    • blank
      AZeeee
      May 05, 2022 12:27 pm Reply

      thanks for having diagrams !! Its so good to finally see it visually.

    • blank
      Manohar Reddy
      May 05, 2022 12:27 pm Reply

      Hi Nana, what is the use of POD when you are using one container per pod. I think when you have multiple containers in pod you can save port and IP address but single container per pod is no use.

    • blank
      Radha Krishna
      May 05, 2022 12:27 pm Reply

      Fantastic explanation Nana.

    • blank
      Dhanraj Ranvirkar
      May 05, 2022 12:27 pm Reply

      sorry your voice is little lower, other all are best

    • blank
      Sai Kovvuri
      May 05, 2022 12:27 pm Reply

      Hello Nana, great explanation on container networking, you had mentioned that you will be releasing a more in-depth content on K8s networking. Any updates on that. Thanks

    • blank
      ghopu100
      May 05, 2022 12:27 pm Reply

      Thank You, Nana ! I had watched the half of the video, decided to pause it and subscribe to your channel first. Very good explanation from basic of pod and containers.

    • blank
      Rajesh Samson
      May 05, 2022 12:27 pm Reply

      Where can I find the complete networking course?

    • blank
      vamsi j
      May 05, 2022 12:27 pm Reply

      Need full kubenents course

    • blank
      Pratap Chilukuri
      May 05, 2022 12:27 pm Reply

      Excellent Job nana!!!! Is complete k8s networking video released?

    • blank
      Fidi Soleil
      May 05, 2022 12:27 pm Reply

      Hi Nana! Thanks so much for this great video! Have you already published more videos of the Kubernetes Networking Course?

    • blank
      subhan D
      May 05, 2022 12:27 pm Reply

      very nice video it helped me a lot in understanding the pod and container behavior in Kubernetes. appreciate your time&efforts

    • blank
      Mr Bamanan
      May 05, 2022 12:27 pm Reply

      Thank you for that video. Very usefull. It was a pleasure to listen

    • blank
      Jean-Pierre Fouche
      May 05, 2022 12:27 pm Reply

      In my view, some of the best Kubernetes content on the internet lives here. Thank You.

    • blank
      Amit Pawar
      May 05, 2022 12:27 pm Reply

      Nice video nana mam

    • blank
      Mayur N.
      May 05, 2022 12:27 pm Reply

      Now I got why pods are needed. Thank you

    • blank
      Twinkle Star
      May 05, 2022 12:27 pm Reply

      ''services enabling clients to discover and talk to pods ''
      Have anyone had idea about this project?

    • blank
      ashok
      May 05, 2022 12:27 pm Reply

      How many side cars we can deploy in a pod. Is there any min and max limit?
      And for every pod, should we maintain "pause container"?

    • blank
      David Moore
      May 05, 2022 12:27 pm Reply

      Thanks!

    • blank
      siva prasad
      May 05, 2022 12:27 pm Reply

      It will be helpful if you have done 2nd part also

    • blank
      siva prasad
      May 05, 2022 12:27 pm Reply

      you are awesome mam

    • blank
      kirhie123
      May 05, 2022 12:27 pm Reply

      Superb information. waiting for your Complete Kubernetes Networking Course. Thanks! 🙂

    • blank
      Mac’s Andre
      May 05, 2022 12:27 pm Reply

      If Pod is a host, then what is Node? From my basic understanding, Node is the smallest unit on the Kubernetes which is physique or virtual machine (laptop or VM)? And you said Pod is the Laptop (which is more or less the same) as the understanding of Node.

      Sorry I still didn't understand between those two…

    • blank
      Surinder
      May 05, 2022 12:27 pm Reply

      This is the best explanation I ever saw anywhere discussing PODs and Containers.

    • blank
      rahul aggarwal
      May 05, 2022 12:27 pm Reply

      Hi madam….. I am unable to bind a container with a port. I am having a postgres container in yaml file on port 5432. Kubectl create is successful and pod is running. But when I exec into the container and run netstat -ln….. It shows no port has been configured. Can you please guide me what can be the reason for this… 😕

    • blank
      Proud Indian
      May 05, 2022 12:27 pm Reply

      Pod concept is like inception movie..!!

    • blank
      Venkatesh Jamadarkhana
      May 05, 2022 12:27 pm Reply

      Such a powerhouse of technology and training with ease !. Wonderful service to the technical community ! Donno how to thank you and appreciate your work. Great …. Thanks a ton Nana.

    • blank
      Dhanunjaya yadav
      May 05, 2022 12:27 pm Reply

      Nana…. These sessions are very much helpful and i am eagerly waiting for that complete networking course of kubernetes…. When/where can i find it.

    • blank
      Juan Lessey
      May 05, 2022 12:27 pm Reply

      Great video as always! Have you already released your Complete K8s Networking course?

    • blank
      Arjun k
      May 05, 2022 12:27 pm Reply

      I am new to K8s. can anyone explain what does the curl image in this video exactly does ?

    • blank
      Kelvin W
      May 05, 2022 12:27 pm Reply

      Excellent videos, I love the bit sized format, you've just explained more in < 14 minutes, than I've learnt in 3 days of reading documentation 😀

    • blank
      rajan chadha
      May 05, 2022 12:27 pm Reply

      Any update on complete k8 networking tutorial

Leave us a comment