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

Sdílet
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.

Komentáře • 246

  • @darcsoul5087
    @darcsoul5087 Před 4 lety +104

    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.

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety +5

      Thank you Darc, really happy to hear that 🙂

    • @jdubeau007
      @jdubeau007 Před 3 lety +2

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

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety

      @@jdubeau007 thanks Joseph 👍 hope my videos will be helpful for you

    • @NicholasNewbill
      @NicholasNewbill Před 3 lety

      I agree, i am loving these short precise explanations over my cloud academy training!

    • @fareedezzedeen8017
      @fareedezzedeen8017 Před 2 lety

      33

  • @vicaf1617
    @vicaf1617 Před rokem +2

    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.

  • @vishalwhite
    @vishalwhite Před 3 lety

    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.

  • @Surindersd57
    @Surindersd57 Před 2 lety

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

  • @venkateshjamadarkhana4817

    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.

  • @joshwolfer
    @joshwolfer Před 3 lety +7

    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!

  • @mastervijooutube
    @mastervijooutube Před 3 lety

    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!

  • @pierreyves.lebrun
    @pierreyves.lebrun Před 4 lety +9

    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

  • @warwicknexus160
    @warwicknexus160 Před 3 lety +7

    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.

  • @EViL3666
    @EViL3666 Před 2 lety +3

    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

  • @ARATHI2000
    @ARATHI2000 Před 8 měsíci

    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!

  • @jean-pierrefouche1827
    @jean-pierrefouche1827 Před 2 lety

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

  • @Admiral.MacDonnell
    @Admiral.MacDonnell Před 3 lety +1

    You are very gifted in explaining things! You make K8 less daunting!

  • @lenakultys7438
    @lenakultys7438 Před rokem

    You're a lifesaver. I love all your videos about docker, kubernetes and gitlab ci. I learned so much thanks to you.

  • @thrinathreddy6755
    @thrinathreddy6755 Před 3 měsíci

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

  • @ghopu100
    @ghopu100 Před 2 lety

    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.

  • @santhoshkumarchakilam8126

    As always , clear , concise and straight to the point. Thanks Nana.

  • @bzqr2k
    @bzqr2k Před 4 lety +14

    Congrats ! You are a fantastic teacher! Very clear and didactic!

  • @TechWorldwithNana
    @TechWorldwithNana  Před 4 lety +7

    ❌ 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 💡🙂

    • @jimmyd6152
      @jimmyd6152 Před 2 lety

      Thanks for correcting! I got confused and even convinced for a bit till I saw your comment here :)

  • @nguyendinhnguyen8327
    @nguyendinhnguyen8327 Před 3 lety +30

    Waiting for the "Complete K8S Networking Course". Thank you!!

  • @nirmesh44
    @nirmesh44 Před 3 lety +2

    Best videos on internet about kubernetes. Specially the way you give examples and make us understand in terms of real use cases.

  • @iammayurn
    @iammayurn Před 2 lety

    Now I got why pods are needed. Thank you

  • @Joe-tk8cx
    @Joe-tk8cx Před 3 lety

    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.

  • @AZeeee
    @AZeeee Před 2 lety

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

  • @i-poorna-chandra06
    @i-poorna-chandra06 Před 2 lety

    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.

  • @mykhailokoliadko7737
    @mykhailokoliadko7737 Před rokem +1

    As always, short and precise.👍

  • @-Harambe
    @-Harambe Před 3 lety +4

    Thank you, love the way you explain things.

  • @callahan7257
    @callahan7257 Před 3 lety

    Really understandable video.Very good explanations. Looking forward to the network course.

  • @anhquocnguyen1578
    @anhquocnguyen1578 Před rokem

    love the video and how you explained it very well. thank you

  • @yashghatti
    @yashghatti Před 3 lety +2

    thank you so much, your videos as really easy to follow and cover the most important parts

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety

      Glad my way of explaining things is so helpful and easy to follow 👍

  • @subhand9961
    @subhand9961 Před 2 lety

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

  • @RakeshMandava
    @RakeshMandava Před 4 lety +2

    Thanks.. Looking forward to k8s networking course.. you are my best k8s tutor so far..I 'understand' when you explain.

  • @kslvvaraprasad5864
    @kslvvaraprasad5864 Před 3 lety

    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 .

  • @MuhammedDahab
    @MuhammedDahab Před 3 lety +4

    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

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety

      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 🤗

  • @saxmanrex
    @saxmanrex Před rokem +1

    Excellent video Nana!!!

  • @deepanchakrvarthyp7063
    @deepanchakrvarthyp7063 Před 4 lety +4

    To the level of clear start, explanation as per concept was fantabulous...keep up

  • @bvpraju6986
    @bvpraju6986 Před rokem

    Thanks for wonderful details explanation, looking forward for complete Kubernetes Networking course.

  • @ZAITOMArt
    @ZAITOMArt Před rokem

    Thank you so much! It was very helpful!

  • @mrbamanan5106
    @mrbamanan5106 Před 2 lety

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

  • @peregineme
    @peregineme Před 2 lety

    Thanks, looking forward to the networking course.

  • @yogeshshetty804
    @yogeshshetty804 Před 4 lety +2

    Hi Nana, One of the Best explanations . Highly appreciable. Your explanation is the best. thank you.

  • @RadhaKrishna-cw5bj
    @RadhaKrishna-cw5bj Před 2 lety

    Fantastic explanation Nana.

  • @rahulrai78
    @rahulrai78 Před 3 lety +1

    Nana you are just awesome. It so simple to understand concept with your videos.

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety

      Really happy you like my way of teaching :) Please share if you think it will be helpful for others too 🙏

  • @cayofelipe1217
    @cayofelipe1217 Před 3 lety +1

    Thanks nana!! You are helping me to be DevOps now 🙏🏾🙏🏾🙏🏾

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety +1

      Glad to hear my videos help you Cayo! 🙂 And btw it's Nana ;)

  • @tdiallo199
    @tdiallo199 Před 3 lety

    amazing tutorial. thank you!

  • @aaqib49
    @aaqib49 Před 4 lety +2

    Thanks tech world nana nowonly i have got an clear idea about Kubernetes pods. Keep going on 👍🏼💡

  • @hamestet
    @hamestet Před 4 lety +1

    What a voice, what a lovely voice. And the content as always is top. Thanks!

  • @narindersingh4703
    @narindersingh4703 Před 3 lety

    Awesome stuff .. patient and just to the point ->

  • @beatagozdziaszek8157
    @beatagozdziaszek8157 Před 3 lety +1

    Thank you. This is so nicely explained.

  • @rawyin
    @rawyin Před 3 lety

    Excellent video. This is how people need to teach people about technology. So much time can be wasted learning k8s.

  • @dhanunjayreddyvalluru8161

    You’re Kubernetes videos are amazing. These are far better than paid courses. Thank you. If possible can you make video on ISTIO??

    • @TechWorldwithNana
      @TechWorldwithNana  Před 4 lety

      Wow thank you for that amazing feedback :) Will definitely create a video or course about Istio.

  • @If_you_hvae_noticed
    @If_you_hvae_noticed Před 3 lety +1

    I need more about the Pod to pod communication videos. Please make those soon.

  • @chamindaalocious4257
    @chamindaalocious4257 Před 3 lety

    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?

  • @gokurtm
    @gokurtm Před 3 lety +1

    Great Video, really helping me with my work with AKS.

  • @786Prat
    @786Prat Před 2 lety

    Great videos for knowledge gaining .

  • @MikeSpille
    @MikeSpille Před 3 lety

    Great stuff, Nana!

  • @rajasivagaminathan9828
    @rajasivagaminathan9828 Před 3 lety +1

    Well done. Much needed concept well explained.

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety

      Thank you Raja! Glad this has helped. Best of luck in your career. 😊

  • @kirhie123
    @kirhie123 Před 2 lety

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

  • @saeedahmed-lb1iz
    @saeedahmed-lb1iz Před 3 lety +1

    Your kubernetes videos are better and more understandable than the most of the paid training offerings. please share Networking k8s quickly.

  • @juleswombat5309
    @juleswombat5309 Před 3 lety

    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.

  • @faridakbarov4532
    @faridakbarov4532 Před 4 lety +1

    As always great video explain!!
    Next wait persistance storage solutions in k8s
    Thanks in advance!!

  • @akashnag3879
    @akashnag3879 Před 4 lety +1

    Thank u very much for the efforts.. very helpful

  • @prasannanayak5454
    @prasannanayak5454 Před 4 lety +1

    I will be waiting for kubernetes networking course with real time examples. Thanks #Nana for such valuable content.

  • @CSSFACE
    @CSSFACE Před rokem

    how did you gain such a depth of knowledge of kubernetes. very impressive and informative, thank you

  • @shiningshaan
    @shiningshaan Před 3 lety

    Superb explaination...

  • @AmolGautam
    @AmolGautam Před rokem +1

    Thank you so much.

  • @kiranarvindalur
    @kiranarvindalur Před 2 měsíci

    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

  • @sreekanthjanapati409
    @sreekanthjanapati409 Před 3 lety

    Excellent video.. Waiting for further videos

  • @GopalRoy-nn6ft
    @GopalRoy-nn6ft Před 3 lety

    Great work nana

  • @lkledu2
    @lkledu2 Před rokem

    I aways thought that a pod was the same as a container. Thank you a lot.

  • @sambasiva1702
    @sambasiva1702 Před 3 lety

    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 ?

  • @benchiro7581
    @benchiro7581 Před 4 lety +1

    thanks Nana well explained

  • @mystiqkc
    @mystiqkc Před 3 lety +1

    Great video!

  • @valour.se47
    @valour.se47 Před 4 lety +1

    Keep it up Nana

  • @alexserbul
    @alexserbul Před 9 měsíci

    Thank you!

  • @gamerteam9304
    @gamerteam9304 Před 3 lety +1

    Awesome teaching . its easy to lean K8S, also sharing videos to my friends those are interested to learn Kubernetes.

  • @TheSpoovy
    @TheSpoovy Před 3 lety

    Fantastic content.

  • @marsilya55
    @marsilya55 Před 4 lety +1

    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.

  • @alienbotofficial
    @alienbotofficial Před rokem

    Great content 👍

  • @nicolasafonso8916
    @nicolasafonso8916 Před 3 lety

    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?

  • @tejsinghranaofficial
    @tejsinghranaofficial Před 4 lety +2

    Really great content. Eagerly waiting for kubernetes networking. (y)

  • @fidisoleil5606
    @fidisoleil5606 Před 2 lety

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

  • @kalankaraivilakkam
    @kalankaraivilakkam Před 3 lety

    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.

  • @anshukhanna6041
    @anshukhanna6041 Před 3 lety

    Please please please , release networking course as soon as possible. You have no idea how desperate I am to go through it!!!!! :D

  • @madhu_parimi
    @madhu_parimi Před 3 lety

    Thank you.

  • @DavidMoore-dm3dj
    @DavidMoore-dm3dj Před 2 lety +1

    Thanks!

  • @saikovvuri
    @saikovvuri Před 2 lety +1

    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

  • @bigfanentertainment3940
    @bigfanentertainment3940 Před 3 lety +1

    Eagerly waiting for complete Kubernetes Networking course

  • @payamrastogi
    @payamrastogi Před 4 lety

    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?

  • @sandeepyalamarthi2485

    This is really good explanation. Can you do videos on istio or any other service mesh?

  • @jlesseyp
    @jlesseyp Před 2 lety

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

  • @pale27
    @pale27 Před 3 lety +1

    very helpful, Thanke you :)

  • @altuhovsu
    @altuhovsu Před 3 lety

    Thank you! Very interested in sidecar containers, how it works? Service mesh is based on sidecar.

  • @someshbose
    @someshbose Před 3 lety +1

    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.

    • @TechWorldwithNana
      @TechWorldwithNana  Před 3 lety +1

      Hi Somesh thank you! Istio is on my list for future videos

    • @someshbose
      @someshbose Před 3 lety

      @@TechWorldwithNana thank you. Looking for it.

  • @sivaprasad7555
    @sivaprasad7555 Před 2 lety

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

  • @chandralekha7717
    @chandralekha7717 Před 3 lety +1

    love them

  • @redbro8893
    @redbro8893 Před 8 měsíci

    Hi..inside the pod container port map to pod port ?

  • @mohamedmohamed118
    @mohamedmohamed118 Před 3 lety

    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?

  • @bhaskar6705
    @bhaskar6705 Před 4 lety +1

    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

  • @osman_gedik
    @osman_gedik Před rokem

    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?