Pods and Containers - Kubernetes Networking | Container Communication inside the Pod
Vložit
- čas přidán 2. 05. 2024
- Kubernetes Networking | Kubernetes Container Networking | Kubernetes Pods and Containers | Kubernetes Container Communication | Kubernetes Container Port
► Subscribe To Me On CZcams: 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 ► kubernetes.io/docs/setup/prod....
▬▬▬▬▬▬ 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: gitlab.com/nanuchi/kubernetes...
-------------------------------------------------------------------------------------------------------
Full Kubernetes and Docker tutorial ► bit.ly/2YGeRp9
DevOps Tools, like Ansible ► bit.ly/2W9UEq6
Complete K8s Application Setup ► • Complete Application D...
Complete Jenkins Pipeline Tutorial ► • Complete Jenkins Pipel...
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 ► bit.ly/32UVSZP
Don't forget to subscribe ► bit.ly/3mO4jxT
DEV ► bit.ly/3h2fqiO
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► 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.
Really appreciate it. Your kubernetes videos are better and more understandable than the most of the paid training offerings.
Thanks for keeping it free and sharing your knowledge to all.
Thank you Darc, really happy to hear that 🙂
@@TechWorldwithNana It's true, I got so frustrated with the instructor. I told him what in hell does any of this have to with docker volumes?
So I found your video on youtube. Now I'm going through all the Kubernetes subjects on your channel.
@@jdubeau007 thanks Joseph 👍 hope my videos will be helpful for you
I agree, i am loving these short precise explanations over my cloud academy training!
33
I just stared my job a couple of months ago. My only prior experience was 3 months of linux system administration internship.
I am in the DevOps team and your whole channel is saving my life. Thank you.
Just now finished the same concept in LinuxAcademy (Now Acloudguru) but was very confusing. Came here and now everything is clear. The fact that this video is free and available for everyone is astonishing. You are doing a great job. If you plan on releasing a paid course, Remember you definitely have one buyer here.
This is the best explanation I ever saw anywhere discussing PODs and Containers.
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.
Just going to echo what everyone else is saying, THANK YOU! I've been avoiding learning k8s for months, because everyone just say's it's too complicated and impossible to understand. I've learned more from a couple hours of your videos, than I have from asking questions and looking at other resources the last year. Really great content!
Absolutely agree!
Thank you so much for these videos Nana, they are a wealth of knowledge on such a complex topic which you make it so easy and that too free. Hats off Ma'am!
Thanks for the explanation, so far I had never taken the time to even think about why the abstraction a pod offers is so important
Thanks Pierre, glad you liked the video :)
Thank you Nana! I am amazed at how much effort you have put into these videos. All your videos that I have seen so far are very accurate in the details you present and also the presentation flow and sequence are just perfect! I hope you get rewarded for your efforts.
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 :D
Hi Nana, every time I listen to your video, I am so impressed with the content, delivery and subject coverage. Thank you, and keep it up!
In my view, some of the best Kubernetes content on the internet lives here. Thank You.
You are very gifted in explaining things! You make K8 less daunting!
You're a lifesaver. I love all your videos about docker, kubernetes and gitlab ci. I learned so much thanks to you.
Nana...I Love you and your all DevOps topics explained. When ever i look for any cloud topics want to learn first i look for yours videos. You are really gem of a person. Learning aspirants really required a teacher like you. ❤❤❤
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.
As always , clear , concise and straight to the point. Thanks Nana.
Thanks Santhosh, appreciate it :)
Congrats ! You are a fantastic teacher! Very clear and didactic!
Hi Mauricio! Thanks for your feedback, happy to hear :)
❌ Correction for 6:15 in the video: Vagrant is NOT a container runtime alternative. K8s lists some of the alternatives here ► kubernetes.io/docs/setup/production-environment/container-runtimes/.
.
► Reference to demo YAML Configs: gitlab.com/nanuchi/kubernetes-tutorial-series-youtube/-/tree/master/container-communication-k8s-networking
T I M E S T A M P S
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
Please subscribe and like the video, if you learned something new 💡🙂
Thanks for correcting! I got confused and even convinced for a bit till I saw your comment here :)
Waiting for the "Complete K8S Networking Course". Thank you!!
Will try to make it as soon as possible! Stay tuned
Me too
Please I am waiting
Me 3. Urgent need so I can start re-architecting my project... Much appreciated!
I need complete k8s networking concepts
Best videos on internet about kubernetes. Specially the way you give examples and make us understand in terms of real use cases.
Thank you Nirmesh - please like and share :D
Now I got why pods are needed. Thank you
Super informative, especially I never knew the idea of pause containers until today. You are the Captain Marvel of K8s nana keep up the good work.
thanks for having diagrams !! Its so good to finally see it visually.
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.
As always, short and precise.👍
Thank you, love the way you explain things.
Thanks, glad you like the way I explain the concepts!
Really understandable video.Very good explanations. Looking forward to the network course.
love the video and how you explained it very well. thank you
thank you so much, your videos as really easy to follow and cover the most important parts
Glad my way of explaining things is so helpful and easy to follow 👍
very nice video it helped me a lot in understanding the pod and container behavior in Kubernetes. appreciate your time&efforts
Thanks.. Looking forward to k8s networking course.. you are my best k8s tutor so far..I 'understand' when you explain.
Thank you Rakesh 🙏
hi nana...i am just searching for why pod not container in k8s.you just answered it very preciously...loved your explanation nana.thank you .
thank you very much ,now I addicted your videos , in my whole trip of life learning journey there was a great vacuum & I was seeking for something great , something I don't even know what its , & from the first video I watched to you , I realized that this is what I was looking for , I hope if everyone in the world teach his stuff like the way you crafts these courses with your hands, thank you and much love
Wow Mohamed. That's so great to hear! Thank you for your great feedback 🙏I'm glad that my videos have been so helpful for you 🙂I would be thankful if you share my videos and spread the word as well 🤗
Excellent video Nana!!!
To the level of clear start, explanation as per concept was fantabulous...keep up
Happy to hear Deepan, thank you
Thanks for wonderful details explanation, looking forward for complete Kubernetes Networking course.
Thank you so much! It was very helpful!
Thank you for that video. Very usefull. It was a pleasure to listen
Thanks, looking forward to the networking course.
Hi Nana, One of the Best explanations . Highly appreciable. Your explanation is the best. thank you.
Hi Yogesh, thank you so much! Really happy to hear :)
Glad to see your reply. thank you
Fantastic explanation Nana.
Nana you are just awesome. It so simple to understand concept with your videos.
Really happy you like my way of teaching :) Please share if you think it will be helpful for others too 🙏
Thanks nana!! You are helping me to be DevOps now 🙏🏾🙏🏾🙏🏾
Glad to hear my videos help you Cayo! 🙂 And btw it's Nana ;)
amazing tutorial. thank you!
Thanks tech world nana nowonly i have got an clear idea about Kubernetes pods. Keep going on 👍🏼💡
Awesome Aaquib! :)
What a voice, what a lovely voice. And the content as always is top. Thanks!
Thank you 🙏
Awesome stuff .. patient and just to the point ->
Thank you. This is so nicely explained.
Thank you so Beata :)
Excellent video. This is how people need to teach people about technology. So much time can be wasted learning k8s.
You’re Kubernetes videos are amazing. These are far better than paid courses. Thank you. If possible can you make video on ISTIO??
Wow thank you for that amazing feedback :) Will definitely create a video or course about Istio.
I need more about the Pod to pod communication videos. Please make those soon.
Hello Nana, your videos are incredible and very cleverly explained. Can you do a video of using Service discovery and API gateway functionality in Kubernetes cluster? It would good if you can take an example API gateway (not an Ingress Controller) which can be used in production as well.
Can you take a deep look into Service Discovery process in Kubernetes Cluster? and explain how can we use both be utilize to deploy a microservice based application in Kubernetes
What are the best API gateways we could use to implement functionality of an API gateway which something similar to Zuul in Spring Cloud? How can we achieve more than routing such as authentication, authorization, JWT token generation so on?
Great Video, really helping me with my work with AKS.
Awesome, glad I can help you with these videos :)
Great videos for knowledge gaining .
Great stuff, Nana!
Well done. Much needed concept well explained.
Thank you Raja! Glad this has helped. Best of luck in your career. 😊
Superb information. waiting for your Complete Kubernetes Networking Course. Thanks! :)
Your kubernetes videos are better and more understandable than the most of the paid training offerings. please share Networking k8s quickly.
Thanks a lot, really happy to hear :)
Great clearly explained video as always.
But I was hoping for an explanation on how to expose a K8 pod services to local host and clients. Most people will set up services on K8 clusters, but will want to connect into those services from outside the K8 cluster. I thought there was an expose command, but that may only be for Google Kubernetes Engine. Obviously there are K8 services, but these need to expose external port and static IP addresses for persistent network access points.
As always great video explain!!
Next wait persistance storage solutions in k8s
Thanks in advance!!
Thanks a lot Farid! :)
Thank u very much for the efforts.. very helpful
Glad to hear it was helpful for you, thank you Akash
I will be waiting for kubernetes networking course with real time examples. Thanks #Nana for such valuable content.
👍 thanks Prasanna
how did you gain such a depth of knowledge of kubernetes. very impressive and informative, thank you
Superb explaination...
Thank you so much.
Really appreciate this video and gave clarity on the networking between POD and Containers and I am very keen to get to more on the following
► 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
Request you to share the links to go through the same
Excellent video.. Waiting for further videos
Great work nana
I aways thought that a pod was the same as a container. Thank you a lot.
Great Explanation..can you please explain below.
When containers talk each other with localhost:port what is the advantage of networking solution frameworks?
How can the pod1 containers communicate with pod2 containers ?
thanks Nana well explained
Thanks Ben :)
Great video!
Keep it up Nana
Thank you!
Awesome teaching . its easy to lean K8S, also sharing videos to my friends those are interested to learn Kubernetes.
Thank you Tapas for supporting me :)
Fantastic content.
Very good Nana. Perhaps some basics and hands-on about Helm and Kustomization would be of value to explain. Looking forward to your upcoming videos.
Thanks for the suggestion!
Great content 👍
Great tutorial. Quick question, what's the difference on executing docker ps -a in a minikube ssh shell with the eval on the minikube docker-env?
Really great content. Eagerly waiting for kubernetes networking. (y)
Thanks, already working on it 👩🏻💻
Hi Nana! Thanks so much for this great video! Have you already published more videos of the Kubernetes Networking Course?
Yet another great tutorial. :)
I have a question:
How to define autoscaling options outside the cluster environment. Eg, through a REST Api call . I want to define my tresholds there. is this possible? Because I have a queue service in cloud and want to scale the pods based on it. Thanks.
Please please please , release networking course as soon as possible. You have no idea how desperate I am to go through it!!!!! :D
Thank you.
Thanks!
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
Eagerly waiting for complete Kubernetes Networking course
👍
Hey Nana, You are Kubernetes videos are amazing. Great Job! I have a question regarding running a Redis instance in standalone mode on K8s cluster. I'm using IngressRoute with tcpproxy enabled. When I tried to access the instance using redis client I'm getting this error "Protocol error, got “H” as reply type byte". Any idea?
This is really good explanation. Can you do videos on istio or any other service mesh?
Great video as always! Have you already released your Complete K8s Networking course?
very helpful, Thanke you :)
You're welcome pale, glad it was helpful :)
Thank you! Very interested in sidecar containers, how it works? Service mesh is based on sidecar.
Hi Nana, You are doing a great work here. Keep it up the good job. Can you please create a video on Istio side car as well.
Hi Somesh thank you! Istio is on my list for future videos
@@TechWorldwithNana thank you. Looking for it.
It will be helpful if you have done 2nd part also
love them
Hi..inside the pod container port map to pod port ?
Dear NANA, many thanks for amazing videos, May I ask when you plan to release K8s full networking course mentioned at the end of this video?
Hey really good explanation...I am always having one doubt in my mind about networking how it will work inside pod multiple containers..your answer it’s like laptop we can multiple services that’s really easy to understand everyone ...I am really waiting for your full networking next video, thanks a lot
Glad you like the video :)
your videos are great, much better than cloud-guru Videos. So much understandable !
you said, that you will make a kubernetes networking course, I couldnt find it, have you finished the course?