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

Complete Overview of Kubernetes Services | Kubernetes Services Types explained: ClusterIP vs NodePort vs LoadBalancer vs Headless Service vs Multi-Port
► Thanks Cockroach Labs for sponsoring this video! 🙌🏼
► Check out CockroachDB - a relational database for next generation, cloud-native applications www.cockroachlabs.com/product/
In this video I will give you a complete overview of Kubernetes Services:
First I explain shortly what Service component is in Kubernetes and when we need it and then I’ll go through the different Service types:
* ClusterIP Service
* Multi-Port Service
* Headless Service
* NodePort and LoadBalancer Service
I will explain the differences between them and when to use which.
So by the end of the video you’ll have a great understanding of K8s Services and will be able to use them in practice
#kubernetes #kubernetesservices #techworldwithnana
▬▬▬▬▬▬ 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
▬▬▬▬▬▬ Want to learn more? 🚀 ▬▬▬▬▬▬
Full Kubernetes and Docker tutorial ► bit.ly/2YGeRp9
DevOps Tools, like Terraform, Prometheus ► bit.ly/2W9UEq6
Jenkins Pipeline Tutorials ► bit.ly/2Wunx08
▬▬▬▬▬▬ Connect with me 👋 ▬▬▬▬▬▬
Join private Facebook group ► bit.ly/32UVSZP
DEV ► bit.ly/3h2fqiO
INSTAGRAM ► bit.ly/2F3LXYJ
TWITTER ► bit.ly/3i54PUB
LINKEDIN ► bit.ly/3hWOLVT
▬▬▬▬▬▬ Courses & Bootcamp & Ebooks 🚀 ▬▬▬▬▬▬
► Become a DevOps Engineer - full educational program 👉🏼 bit.ly/45mXaer
► High-Quality and Hands-On Courses 👉🏼 bit.ly/3BNS8Kv
► Kubernetes 101 - compact and easy-to-read ebook bundle 👉🏼 bit.ly/3Ozl28x

Пікірлер: 527

  • @TechWorldwithNana
    @TechWorldwithNana3 жыл бұрын

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

    3 жыл бұрын

    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

    3 жыл бұрын

    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

    2 жыл бұрын

    It's really amazing 🙏

  • @VR-cr9wn

    @VR-cr9wn

    2 жыл бұрын

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

  • @VR-cr9wn

    @VR-cr9wn

    2 жыл бұрын

    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
    @RiteshAgarwalGwalior2 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    2 жыл бұрын

    Thanks Ritesh, that's a great feedback :)

  • @priyankaroy5627

    @priyankaroy5627

    Жыл бұрын

    Agreed...thank you Nana

  • @SoumyaDassrd

    @SoumyaDassrd

    Жыл бұрын

    I do agree, but child must have @Ritesh age 😄

  • @1improvement28

    @1improvement28

    Жыл бұрын

    Bhaisahab ye kuch zyada nahi hogaya?

  • @yanglianglu9098

    @yanglianglu9098

    10 ай бұрын

    Exactly!

  • @MaccaBeats
    @MaccaBeats Жыл бұрын

    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!

  • @marksheard1210
    @marksheard1210Ай бұрын

    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.

  • @prajwalgmpp
    @prajwalgmpp9 ай бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    9 ай бұрын

    Thank you, your support means a lot!

  • @hkmehandiratta
    @hkmehandiratta2 жыл бұрын

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

  • @RashmiDuneja

    @RashmiDuneja

    3 ай бұрын

    Me too ..

  • @cemkizil7599
    @cemkizil75993 жыл бұрын

    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

    3 жыл бұрын

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

  • @nipunsharma1945
    @nipunsharma19453 жыл бұрын

    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

    3 жыл бұрын

    Great to hear 😊 Thank you for your positive feedback!

  • @AnantaAkash.Podder
    @AnantaAkash.Podder21 күн бұрын

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

  • @SimonTaylorUK
    @SimonTaylorUK3 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you Simon 😊

  • @user-ij2mg2wv5b
    @user-ij2mg2wv5b9 ай бұрын

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

  • @TheTera110
    @TheTera1102 жыл бұрын

    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!

  • @jmmtechnology4539
    @jmmtechnology4539 Жыл бұрын

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

  • @meghakadur8373
    @meghakadur83732 жыл бұрын

    Love your Technical videos, you explain things in such a meaningful way. Topics that are difficult to understand you make it easier to grasp them. Thank you for such great explanation.

  • @vks4203
    @vks42032 жыл бұрын

    Thanks and appreciate all the efforts gone into along this video and all other video . Being into test automation - your videos are adding great value and knowledge source for me .

  • @govindatupkar8107
    @govindatupkar81072 жыл бұрын

    It was truly incredible and wonderful. I love it! Absolutely brilliant explanation and cleared up a lot of things for me, excellent content thanks Nana

  • @SunilKumar-jf6qq
    @SunilKumar-jf6qq11 ай бұрын

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

  • @ayanshaikh4993
    @ayanshaikh4993 Жыл бұрын

    Your explanations are simply AMAZING

  • @tmiller673
    @tmiller6732 жыл бұрын

    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.

  • @rmagnum2002
    @rmagnum20023 жыл бұрын

    "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!

  • @hareeshhari1601
    @hareeshhari16013 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Wow really glad to hear 😊 Thanks for your feedback 🙏

  • @gillianbc
    @gillianbc8 ай бұрын

    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.

  • @jjones40
    @jjones402 жыл бұрын

    Finally... after so many poor effort videos - a clear, honest explanation. Thanks. Thumbs up. Subscribed.

  • @Sid-sl3xk
    @Sid-sl3xk3 жыл бұрын

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

  • @kenmurphy4259
    @kenmurphy42593 жыл бұрын

    Absolutely brilliant explanation and cleared up a lot of things for me, excellent content thanks Nana

  • @virabadrasana
    @virabadrasana2 жыл бұрын

    What a brilliant, lucid explanation. Top class presentation, thank you!

  • @pramodknable
    @pramodknable6 ай бұрын

    Love ur videos. It's amazing how u make even the most complex of concepts really simple.

  • @marwanghabin8758
    @marwanghabin87583 жыл бұрын

    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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    That's great, thanks for your comment! :)

  • @naanuswaroop
    @naanuswaroop2 жыл бұрын

    Finally a networking tech video that speaks my language!

  • @viswanathn9156
    @viswanathn91563 жыл бұрын

    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.

  • @5540Mohammed
    @5540Mohammed2 жыл бұрын

    Well done. One of the best tutorials I’ve seen for a while. Great stuff 👏

  • @bouzie8000
    @bouzie80002 жыл бұрын

    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!

  • @soodankit
    @soodankit11 ай бұрын

    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.

  • @akshatagawade4366
    @akshatagawade43664 ай бұрын

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

  • @Nizragore
    @Nizragore7 ай бұрын

    this is as clear as it's gonna get, thank you

  • @ankushdeshmukh1679
    @ankushdeshmukh16793 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thanks a lot Ankush, really happy to hear :)

  • @vakariqbal9067
    @vakariqbal90673 жыл бұрын

    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

    3 жыл бұрын

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

  • @bencebarboza3826
    @bencebarboza38263 жыл бұрын

    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

  • @detach8
    @detach82 жыл бұрын

    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!

  • @junli3714
    @junli37143 жыл бұрын

    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 !

  • @camiloverner3988
    @camiloverner39883 ай бұрын

    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

    3 ай бұрын

    Me too. All the best.

  • @hamidsafe438
    @hamidsafe4383 жыл бұрын

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

  • @MichaelPechner
    @MichaelPechner2 жыл бұрын

    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.

  • @jacobslusser4232
    @jacobslusser42323 ай бұрын

    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!

  • @hansjzeller
    @hansjzeller Жыл бұрын

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

  • @MrspujaB
    @MrspujaB2 жыл бұрын

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

  • @maibhiyoutuber3575
    @maibhiyoutuber3575 Жыл бұрын

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

  • @landung1623
    @landung16233 жыл бұрын

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

  • @nparsona
    @nparsona3 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you 😊

  • @brianshanahan3878
    @brianshanahan38783 жыл бұрын

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

  • @dubaifatimaali
    @dubaifatimaali Жыл бұрын

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

  • @nishantkansal3719
    @nishantkansal37193 жыл бұрын

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

  • @happylearningtricks
    @happylearningtricks Жыл бұрын

    The visuals you included really helped me grasp the concepts. Seeing the different components and how they relate to each other made it easier to understand how services fit into the larger Kubernetes ecosystem - thank you @Nana

  • @sharma2494
    @sharma2494 Жыл бұрын

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

  • @arpanchakraborty9874
    @arpanchakraborty98743 жыл бұрын

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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Happy you liked it! :) Thanks Arpan!

  • @antonalekseyev9651
    @antonalekseyev96513 жыл бұрын

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

  • @deepdeep4629
    @deepdeep46292 жыл бұрын

    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.

  • @shuvra03
    @shuvra037 ай бұрын

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

  • @itshgirish
    @itshgirish2 жыл бұрын

    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!

  • @thb9904
    @thb99043 жыл бұрын

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

  • @ajaymeda1891
    @ajaymeda18912 жыл бұрын

    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.

  • @mateomatta2381
    @mateomatta23816 ай бұрын

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

  • @gopikrishna7779
    @gopikrishna7779 Жыл бұрын

    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.

  • @2sourcerer
    @2sourcerer2 жыл бұрын

    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.

  • @gabisan
    @gabisan Жыл бұрын

    best explaining video I watched so far. congrats!

  • @codycurnutte7084
    @codycurnutte70843 жыл бұрын

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

  • @shuaibpantnagar

    @shuaibpantnagar

    Жыл бұрын

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

  • @vin2629
    @vin2629 Жыл бұрын

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

  • @rohitvishwakarma2871
    @rohitvishwakarma28712 жыл бұрын

    Again, you're the best DevOps teacher

  • @aleksandarfilipov5294
    @aleksandarfilipov52942 жыл бұрын

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

  • @madyYON
    @madyYON3 жыл бұрын

    you are just amazing Nana ! you saved me days with this .. brilliant !

  • @redjohn933
    @redjohn933 Жыл бұрын

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

  • @vivekmahajan6752
    @vivekmahajan67523 ай бұрын

    The best tutorial on k8s services

  • @aaronjameshorne
    @aaronjameshorne2 жыл бұрын

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

  • @colinrickels201
    @colinrickels2013 жыл бұрын

    dude this is fantastic! Best description seen so far. Personally I think the headless description was bit long considering its not a hot topic but I skipped little ahead to the service types and the descriptions and animations are great.

  • @rohsin47
    @rohsin472 жыл бұрын

    So complex but explained so beautiful. Great thanks !

  • @connectromil
    @connectromil Жыл бұрын

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

  • @basavarajpatil5574
    @basavarajpatil557410 ай бұрын

    Thank you Nana for a wonderful session on kubernetes services🙂

  • @csvidzz
    @csvidzz2 жыл бұрын

    I'm not a DevOps enginner, I am a software engineering but passionate about DevOps. I can surely say that your tutorials are the best out there and real life examples about it. Thank you a lot for these! 🙏

  • @rbsood

    @rbsood

    Жыл бұрын

    same here :)

  • @devengengan4270
    @devengengan42703 жыл бұрын

    Very well explained, thanks for putting together this awesome content Nana 🙏

  • @virendraashiwal8311
    @virendraashiwal83113 жыл бұрын

    Very well explained the whole Service concept! Thank you very much for making such videos.

  • @jnsridhar
    @jnsridhar11 ай бұрын

    It was very clear to understand. Every piece of it is well explained.

  • @prasannaraj584
    @prasannaraj584 Жыл бұрын

    That was crystal clear, Nana.... Thank you....

  • @mikhailkulak3203
    @mikhailkulak32033 жыл бұрын

    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:)

  • @kpravin007
    @kpravin0072 жыл бұрын

    I was looking for a video with this kind of explanation. Thank you for clearing lot of my doubts.

  • @tukhtamurotov
    @tukhtamurotov Жыл бұрын

    Clear explanation of Services, thank you!

  • @umakantmis833
    @umakantmis8338 ай бұрын

    Excellent, easily explained step by step everything. Fantastic.

  • @gauravdas1000
    @gauravdas10003 жыл бұрын

    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

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you 🙏

  • @techgalary
    @techgalary Жыл бұрын

    Thank for creating such a great content with very simple explanation, I would recommend this video to my colleagues to watch

  • @VaibhavJain
    @VaibhavJain Жыл бұрын

    One of the best logical explanation. Really appreciate your effort

  • @youtubeoneverything4581
    @youtubeoneverything4581 Жыл бұрын

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

  • @-long-
    @-long-3 жыл бұрын

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

  • @sf2998
    @sf29983 жыл бұрын

    your diagrams helped to clarify everything. thank u

  • @JobinAugustine
    @JobinAugustine21 күн бұрын

    Awesome. Noone has explained k8s Servinces this detailed

  • @TheMusicDagger
    @TheMusicDagger3 жыл бұрын

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

  • @shacham85
    @shacham854 ай бұрын

    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.

  • @mehditorkamani9890
    @mehditorkamani98903 жыл бұрын

    It was just wonderful. Thank you! Graphics helped a lot.

  • @TechWorldwithNana

    @TechWorldwithNana

    3 жыл бұрын

    Thank you for your positive feedback :)

  • @thepopeut
    @thepopeut Жыл бұрын

    Thank you so much for this video. This was very helpful to clear up some confusion I was facing

  • @piyushdarji7926
    @piyushdarji7926 Жыл бұрын

    Unbelievable teaching skill and video graphics :)

  • @Im_Ninooo
    @Im_Ninooo Жыл бұрын

    This video was very well explained, thank you Nana!

  • @mrmithungarg
    @mrmithungarg2 жыл бұрын

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