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



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 thoughts on “Pods and Containers – Kubernetes Networking | Container Communication inside the Pod”
  1. 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.

  2. 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!

  3. 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.

  4. 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

  5. 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.

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

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

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

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

  10. 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"?

  11. 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…

  12. 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… 😕

  13. 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.

  14. 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.

  15. 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 😀

Leave a Reply

Your email address will not be published.

Captcha loading...