Kubernetes Services explained | ClusterIP vs NodePort vs LoadBalancer vs Headless Service

Поділитися
Вставка
  • Опубліковано 10 січ 2025

КОМЕНТАРІ • 552

  • @TechWorldwithNana
    @TechWorldwithNana  4 роки тому +73

    ▬▬▬▬▬▬ T I M E S T A M P S ⏰ ▬▬▬▬▬▬
    0:00 - Intro
    00:33 - What is a Service in Kubernetes and when we need Kubernetes Service component?
    02:10 - ClusterIP Services
    06:30 - Service Communication: selectors, labels and ports
    09:27 - Service Endpoints
    09:59 - Service Communication: port vs targetPort
    11:31 - Multi-Port Services
    12:58 - Headless Services
    18:28 - NodePort Services
    21:22 - LoadBalancer Services
    23:18 - Wrap Up
    If you liked the video, please leave a thumbs up and subscribe for more content :)

    • @samboy05
      @samboy05 4 роки тому

      Thanks for the great content, I have an open question - How does the ClusterIp decide which replica to forward the request to? Is it always random? can we change it to a different algorithm?

    • @hpibmsun
      @hpibmsun 4 роки тому +2

      I am chinese,UNIX/HA/STORAGE admin in canada, your video is great! your video is better than any training center in china!!

    • @jkumar988
      @jkumar988 3 роки тому

      It's really amazing 🙏

    • @VR-cr9wn
      @VR-cr9wn 3 роки тому

      Thanks a ton Nana. This video has helped me understand the concept more clearly and clear up confusions I had.

    • @VR-cr9wn
      @VR-cr9wn 3 роки тому

      How many service endpoints or objects of each type can be present in a k8s cluster? Can a pod be part of multiple service endpoints?

  • @RiteshAgarwalGwalior
    @RiteshAgarwalGwalior 2 роки тому +96

    Nobody can explain Kubernetes better than you! Even a child could understand it. Thanks for sharing such wonderful stuffs.

  • @MaccaBeats
    @MaccaBeats Рік тому +33

    this is one of the rare moments (it's the second one for now!) i get to appreciate what a gift having free internet access is. your videos are simply amazing and i can't thank you enough for what you're doing!

  • @findingMyself.25yearsago
    @findingMyself.25yearsago 4 місяці тому +5

    Nana Nana Nana!!!!
    This is what my mind yells at me whenever a devops related works assigned to my team.
    Tried out various blogs & other videos, but the clarity on your video is just awesome!
    Really love your way of making things simpler to get goood understanding

  • @marksheard1210
    @marksheard1210 9 місяців тому +1

    3 year later and still relevant today. Thank you Nan, you really do spend time elaborating
    and explaining each part in an easy understandable way.

  • @Thedrscooby
    @Thedrscooby 2 місяці тому +1

    i paid a lot of money to take a course at my local college institute to learn kubernetes, and the instructor didn't teach any of this. I learned a lot from this video than i did taking the course. This video is a gem in kubernetes services. My course instructor spent one class in networking but was dry and boring, nothing in the class about nodeport, cluster ip, load balancer, how pods work, how node works, nothing. This video explained everything in an easy understandable way.

  • @ajaymeda1891
    @ajaymeda1891 3 роки тому +2

    Not sure who are the people who disliked this video but this is the best explanation for Kubernetes Service that you can find - maybe even better than the official documentation.

  • @rmagnum2002
    @rmagnum2002 3 роки тому +9

    "ClusterIp service type selector will look for pods that matches ALL labels, not just one" - the key to my issues running my app locally in kubernetes with minikube. Thank you!

  • @codycurnutte7084
    @codycurnutte7084 3 роки тому +12

    So I have been working as the lead guy on our team for converting our cloud deployment from Docker Swarm to K8s for a while now. I have taken courses and have even put this stuff into practice but just now finally got a clear understanding of all of the innerworkings of node port vs load balancer. You were able to get me over that hump in 20 mins when a three day course couldnt. Bravo to you.

    • @rahulsingh-iq4gd
      @rahulsingh-iq4gd Рік тому

      How the pod communicate with backend pod ??

    • @ApunKaTimeAyega
      @ApunKaTimeAyega Рік тому

      @@rahulsingh-iq4gd you mean to say how front end pod communicates with backend pod ? If yes, you can either use a service url that is internal or gateway url (nginx/ application gateway)

  • @nipunsharma1945
    @nipunsharma1945 4 роки тому +21

    I am so lucky that I watched your full playlist first, before any other kinds of stuff. You have imprinted the concepts with a wonderful depiction in my mind, forever.

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому +2

      Great to hear 😊 Thank you for your positive feedback!

  • @prajwalgmpp
    @prajwalgmpp Рік тому +4

    Everytime I watch this, I will drop a comment so that it will raise through the algo ranking. Nana deserves it

  • @cemkizil7599
    @cemkizil7599 4 роки тому +37

    I don't remember watching a technical video with such joy.
    It was truly incredible and wonderful. I love it!
    Please never stop!

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому +2

      Thank you so much! I'm happy to hear such positive feedback 😊

  • @gopikrishna7779
    @gopikrishna7779 2 роки тому

    For So many days, I had a doubt on Cluster IP.
    Today I got the clear picture on Cluster IP and Node Port. Thank you Nana
    You are my new Kubernetes Guru.

  • @behnamrhp9991
    @behnamrhp9991 4 місяці тому +1

    The most clear and easy to understand content that I found for service. You helped me a lot. Thanks Nana.

  • @MohsinShafqat-i3u
    @MohsinShafqat-i3u Рік тому +6

    This was absolutely fantastic - some of the most complicated concepts explained in a matter of mins.. you are a superstar

  • @Anonimo_por_escolha
    @Anonimo_por_escolha Рік тому +1

    I'm Brazilian and I'm starting to study Kubernetes because of work, and the only video I could understand was this one even though it was in another language. I'm happy to know that my English is good and that it really pays off to study English for the technology market. And congratulations on the video explaining the ball show!

    • @RashmiDuneja
      @RashmiDuneja 11 місяців тому +1

      Me too. All the best.

  • @jacobslusser4232
    @jacobslusser4232 Рік тому

    I've been semi-exposed to Kubernetes and its concepts for 5+ years now and was still plenty confused on many of the concepts. This video is by far the simplest explanation of these concepts that I've come across. Well done!

  • @naanuswaroop
    @naanuswaroop 3 роки тому +1

    Finally a networking tech video that speaks my language!

  • @hkmehandiratta
    @hkmehandiratta 2 роки тому +1

    Excellent tutorail..... I took 50+ pauses to grasp this ocean of knowledge.

  • @marwanghabin8758
    @marwanghabin8758 4 роки тому +5

    this video came in time , I was creating a microservice and needed to access from outside but not been public on the internet, I found the sol in your explaination , Thanks a lot Nana for this awsome effort

  • @2sourcerer
    @2sourcerer 3 роки тому

    I've been configuring my cluster following other tutorials and lectures with I having half-baked understanding and some fiddling to get things work. And these clusterPort, nodePort, servicePort, targetPort gibberish have have me Googling all over and are driving me nuts. At nowhere else do I obtain a state of clarify that is the experience I obtained from watching this video. Just wow. This video may not be meant for a complete newbie to try to get things to work, but it does give me an overarching overview and understanding of how things work after I have some basic understanding. It is godsent. Thank you so much Nana.

  • @maheshghagare4940
    @maheshghagare4940 4 місяці тому +2

    this is one best video on kubernetes services, explained in detail

  • @dubaifatimaali
    @dubaifatimaali Рік тому +1

    She makes me love my software engineering degree. Her explanatios is clear and precise. Thankyou so making it easier for us.

  • @hareeshhari1601
    @hareeshhari1601 4 роки тому +5

    You speak what the listener wants! Stunning display of content. Struggling with this concepts from quite a long. Thank You!

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому +1

      Wow really glad to hear 😊 Thanks for your feedback 🙏

  • @SimonTaylorUK
    @SimonTaylorUK 4 роки тому +14

    Great combination of concise language and clear graphics. Helping me get up the k8s learning curve quickly! Great job.

  • @nishantkansal3719
    @nishantkansal3719 3 роки тому +2

    Speechless, Awesome, Marvelous, Excellent, Bingo, I don't have words to say for your teaching style. God bless you and keep it up.

  • @gillianbc
    @gillianbc Рік тому

    Nana, k8s services is an area I've really struggled to understand for the last 2 years and now I finally get it - especially with all the various ports. Thank you for such a comprehensive video with such clear pictures and examples.

  • @gauravdas1000
    @gauravdas1000 4 роки тому +1

    I had a transparent view of the services now...I worked on these but didnt understand the background of all....the way you described that really make sense

  • @MichaelPechner
    @MichaelPechner 3 роки тому

    Thank you. Was setting up ingress as nodeport, but also nginx as node port. This and your ingress video cleared up this mess. Life is good.

  • @maibhiyoutuber3575
    @maibhiyoutuber3575 2 роки тому +1

    This is best video I have seen for k8 services, please please continue the good work. Big fan of you Nana 🎉

  • @tmiller673
    @tmiller673 2 роки тому

    Thanks for finally making Kubernetes and IaC make sense to me. It's always just been a jumble of 'stuff' and the BIG PICTURE with a drill down really helps.

  • @FaridHaq
    @FaridHaq 3 роки тому

    very complex things you explained very easily. thank you so much for your hard work.

  • @TheTera110
    @TheTera110 3 роки тому +1

    I usually don't comment on videos at all, but I feel the need to give thanks to you Nana. Great video with great, precise explanations. You're helping out the community a lot. Keep it up!

  • @nparsona
    @nparsona 4 роки тому +1

    This is so much clearer than the majority of the videos that are out there. Excellent job,

  • @rajhansshere7094
    @rajhansshere7094 2 роки тому

    Thank you for this explanation… I am network engineer who works on Cisco aci piece but this helps me understand how end to end traffic flows exactly inside cluster till application

  • @soodankit
    @soodankit Рік тому

    Thank you for Docker and k8s series. I've shared the same with my friends and my colleagues, all of us have been benefited by your content.

  • @bouzie8000
    @bouzie8000 3 роки тому

    Very excellent video. I usually don't subscribe to tech junkies: I just watch the videos, scramble for the almost indecipherable information and move on. But your information pour is so clear and crisp so I need more. Subscribed!

  • @jmmtechnology4539
    @jmmtechnology4539 2 роки тому +1

    Best tutorial I've seen on Kubernetes in a long time - Thanks for the explanation!

  • @OrHazut
    @OrHazut 6 місяців тому

    The best explanation you can find out there for K8s services. Thank you Nana!

  • @ankushdeshmukh1679
    @ankushdeshmukh1679 4 роки тому +4

    I was looking for this topic. Got it. Thanks for posting valuable content. Your videos are so clean and clear. Liked it.

  • @MarkusGeiger
    @MarkusGeiger 5 місяців тому +1

    Best Explaination in the topic I have seen including answers to what opens ports and who will it be accessible to. Also historical context - nyce! ;)

  • @shuvra03
    @shuvra03 Рік тому

    I am a great fan of you. Your way of explaining technical stuffs is phenomenal

  • @saikirankappera1878
    @saikirankappera1878 2 роки тому

    Akka(Sister) great stuff. Have been through many websites to understand Networking Service, but this was to the point.Thanks much.

  • @prajwalgmpp
    @prajwalgmpp 4 місяці тому

    (Count 2) Every time I watch this, I will drop a comment so that it will raise through the algo ranking. Nana deserves it

  • @brianshanahan3878
    @brianshanahan3878 4 роки тому +1

    Your videos and explanations are EXCELLENT. I especially like the graphics and animations!!!

  • @connectromil
    @connectromil 2 роки тому +1

    Beautiful explanation I have seen multiple videos not single explains in such details and provide the clarity

  • @redjohn933
    @redjohn933 2 роки тому +1

    Great explanation, you've given me a better understanding of k8s services. Keep up the good work.

  • @viswanathn9156
    @viswanathn9156 3 роки тому +1

    Fantastic explaination, God has gifted you with tons of patience -:) to explain slowly and in crisp clear manner. Thank you very much, am sure lot of people like me will benefit with this knowledge.

  • @bencebarboza3826
    @bencebarboza3826 3 роки тому +1

    very detailed, logical and understandable piece.
    it is not the first video of yours about Kubernetes which I watched and made everything clear for me

  • @sharma2494
    @sharma2494 Рік тому +1

    This is one of the best learning platform for learning Kubernetes 👋👋

  • @antonalekseyev9651
    @antonalekseyev9651 3 роки тому +1

    This is the most useful video regarding kubernetes services exposure I've found

  • @mikhailkulak3203
    @mikhailkulak3203 3 роки тому

    I have rabbitmq and many time thought how to test mq service from outside of cluster and the same time inside. Every time i used port-forward manually. Now all became clear, thx, Nana:)

  • @-long-
    @-long- 3 роки тому +6

    If teaching is an art, you're an excellent artist

  • @itshgirish
    @itshgirish 2 роки тому

    Wow, i tried couple of other long videos on the same topic and left confused. I see this vid and i'm like, was it so simple! Well its rather your approach...explanation with graphics is the perfect approach to simply any complex topic. Amazing teacher you are!

  • @vakariqbal9067
    @vakariqbal9067 4 роки тому +2

    Nana that''s so awesome .Such an amazing way to explain these concepts and makes it so simple for us to understand.Absolutely love it .Much love and thanks

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому +1

      That's amazing to hear! Thank you so much for your comment 😊

  • @deepdeep4629
    @deepdeep4629 3 роки тому

    So far the best tuto ever made in this world !! thank you so much for this video, it's so clear and very helpful.
    Thank you Nana.

  • @vin2629
    @vin2629 2 роки тому

    So much information in this video. These kind of videos are useful for quick learning. Thanks

  • @hansjzeller
    @hansjzeller 2 роки тому

    Thanks very much, very clear explanation of this complex topic! Your video is much easier to understand than the official documentation!

  • @nibrasmuhammed5105
    @nibrasmuhammed5105 Рік тому

    @TechWorldwithNana , on 4:36 , if we change replicas of a deployment file, it will not create a new pod, instead it creates a container and all containers from same deployment file will be called as a pod. reference:
    Container: A container refers to a lightweight and isolated runtime environment that encapsulates an application and its dependencies. Containers provide a consistent and reproducible environment for running applications, ensuring portability across different infrastructure and operating systems. In Kubernetes, containers are used as the fundamental building blocks for packaging and deploying applications.
    Pod: A pod is the smallest deployable unit in Kubernetes. It represents a logical group of one or more containers that are tightly coupled and share the same lifecycle, network, and storage resources. Containers within a pod run on the same underlying worker node and can communicate with each other using localhost. The primary purpose of a pod is to provide a cohesive context for running related containers, often as part of a single application or microservice.
    please correct me if I am wrong.

  • @aleksandarfilipov5294
    @aleksandarfilipov5294 3 роки тому

    I rarely comment on videos but this one made me want to compliment you! Excellent work! :)

  • @rohitvishwakarma2871
    @rohitvishwakarma2871 3 роки тому

    Again, you're the best DevOps teacher

  • @arpanchakraborty9874
    @arpanchakraborty9874 4 роки тому +2

    Great insight, best thing was how you linked all the service types with one another. Thanks a lot.

  • @MrspujaB
    @MrspujaB 2 роки тому

    What a superb explanation Nana !! All your videos have an excellent content and the way you teach makes it very easy to understand. Thanks a ton !! Keep going ....

  • @mateomatta2381
    @mateomatta2381 Рік тому

    These videos are great!! You explain incredibly. Salutes from Colombia!!

  • @junli3714
    @junli3714 4 роки тому

    Very nice presentation, very clear. I confused with ClusterIP, NodePort and LB for a long time even after reading quite a lot document until I watch this video. Thank you !

  • @piyushdarji7926
    @piyushdarji7926 2 роки тому +2

    Unbelievable teaching skill and video graphics :)

  • @Sid-sl3xk
    @Sid-sl3xk 3 роки тому

    Wow! Never seen such a crisp and easy explanation of k8s concepts. Thank you so much. Please keep making such excellent videos.

  • @VaibhavJain
    @VaibhavJain 2 роки тому

    One of the best logical explanation. Really appreciate your effort

  • @securecodingdevelopment5023
    @securecodingdevelopment5023 2 роки тому

    Nana you are the best, the effort in the details of your explanations helps me quickly to understand, thank you very much for your dedication.

  • @gabisan
    @gabisan 2 роки тому

    best explaining video I watched so far. congrats!

  • @amitpawar1677
    @amitpawar1677 3 роки тому

    Very nice and simple explanation Nana.. Keep posting more videos and help people learn new technologies..

  • @ayanshaikh4993
    @ayanshaikh4993 2 роки тому

    Your explanations are simply AMAZING

  • @landung1623
    @landung1623 3 роки тому +2

    Nana, your videos are fantastic! I've learned a lot from them!

  • @aaronjameshorne
    @aaronjameshorne 2 роки тому

    Ive just started learning much more on devops and sre and subbed. these videos are great at explaining in my opinion.

  • @bzanit
    @bzanit 4 роки тому +3

    your way of teaching is fantastic!

  • @letsspeakbharath
    @letsspeakbharath 4 роки тому +1

    Hello from 🇮🇳..... very happy to watch your videos and they very crisp and clear 👍👍👍

  • @vaishnavihambarde6549
    @vaishnavihambarde6549 6 місяців тому

    You are the savior.. Thank you so much for this excellent explanation .

  • @akshatagawade4366
    @akshatagawade4366 Рік тому

    Thanks every much for these videos' its very hard to find something explained so well online.

  • @ianwalucho5407
    @ianwalucho5407 2 роки тому +1

    You are the best in this sector. thumbs up

  • @madnus.codesen
    @madnus.codesen 6 місяців тому

    One of the best tuts on services. Very well explained. 🙌

  • @mrmithungarg
    @mrmithungarg 3 роки тому +1

    This is awesome explanation of service.. thank you so much

  • @AnantaAkash.Podder
    @AnantaAkash.Podder 9 місяців тому

    By far the Best Explanation ever... Thank you Mam...😊

  • @SunilKumar-jf6qq
    @SunilKumar-jf6qq Рік тому

    Thanks Nana for clear the concept of service in kubernates!!!

  • @shacham85
    @shacham85 Рік тому

    Your ability to isolate individual ideas, then clearly connect the concept is amazing. Have you ever thought about turning kubernetes concepts into mmo characters, and concepts? As I am learning k8s, there are so many things to know and understand. It would be cool if there were exercises to level up your own character in an open source gamified cluster. Think like DnD, or Gauntlet, where anyone can make a singular exercise of a variable scale. Heal this pod, open a door (ingress), look ahead with commands. It something to think about. Regardless, your videos are absolute gold. I feel like I am able to understand every concept you cover because of how well you are able to draw the lines.

  • @ArvindKannaberan
    @ArvindKannaberan 8 місяців тому

    Very well articulated! Learnt a ton by going through this playlist! Thank you!

  • @umakantmis833
    @umakantmis833 Рік тому

    Excellent, easily explained step by step everything. Fantastic.

  • @deepaksabane3068
    @deepaksabane3068 2 роки тому

    Nana thanks for the awesome video it helped me alot... You explan the complicated information in a simple way ❤

  • @detach8
    @detach8 3 роки тому +2

    Nana, thank you for this. I had to learn all these in a hurry to get up to speed on a job and your explanations are the clearest I have come across. Keep the videos coming!

  • @youtubeoneverything4581
    @youtubeoneverything4581 2 роки тому

    thanks. It was a clear explanation, specially how diff. services work together

  • @srinivasapoduri1920
    @srinivasapoduri1920 3 роки тому

    That's Crystal clear explanation @TechWorld with Nana !!! Thanks for this Video

  • @levimatheri7682
    @levimatheri7682 2 роки тому +1

    You make it so easy to understand! Thank you!

  • @masteryoda9044
    @masteryoda9044 3 роки тому +3

    8:31 how does the cluster ip service decide which pod to send request to? Does it do load balancing or sends request to only one pod till it is alive.

  • @hamidsafe438
    @hamidsafe438 3 роки тому

    Can't thank you enough, the clarity in this video is superb.

  • @TheMusicDagger
    @TheMusicDagger 3 роки тому

    The best video so far which I found to understand services, @Nana you are amazing ! Thank you so much !

  • @justellvonk2518
    @justellvonk2518 3 роки тому +1

    Hey Nana! Thank you so much! Now I finally understand what I am doing. Hehe. I already took one course to Kubernetes but only everything looks logical :)

  • @diegoramos27
    @diegoramos27 4 роки тому +23

    Hi Nana your videos are amazing, keep up the good work :) also a series on microservices would be awesome :)

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому +1

      Thanks Diego, appreciate your feedback :) Also thanks for your suggestion!

    • @hpibmsun
      @hpibmsun 4 роки тому +2

      I am chinese,UNIX/HA/STORAGE admin in canada, your video is great! your video is better than any training center in china!!

    • @TechWorldwithNana
      @TechWorldwithNana  4 роки тому

      @@hpibmsun Thank you 😊🙏

  • @thb9904
    @thb9904 3 роки тому +1

    Thank you for creating this video, Nana! It is clear and to the point!

  • @michaeldeng1981
    @michaeldeng1981 3 роки тому

    Highly recommended for beginners to get the k8s knowledge correct in the first place.

  • @NestorNarvaez
    @NestorNarvaez Рік тому +1

    ¡Gracias!

  • @prashantsukhadeve9642
    @prashantsukhadeve9642 3 роки тому

    Thank you so much Nana for such informative video. Very easy way you clear my confusion.