Day 9/40 - Kubernetes Services Explained - ClusterIP vs NodePort vs Loadbalancer vs External
Vloลพit
- ฤas pลidรกn 30. 06. 2024
- Welcome to day 9/40 of the Certified Kubernetes Administrator (CKA) Full Course. In this video, we will explore Kubernetes Services in depth with a detailed conceptual explanation, a live demo, and an engaging hands-on assignment.
In this video, you'll learn:
- What are Kubernetes Services
- How we use Kubernetes service to expose an application
- Different types of Kubernetes services ClusterIP vs NodePort vs Loadbalancer vs External
- Demo creating a Kubernetes service
- Imperative commands to create a service
- What are endpoints in Kubernetes
- Troubleshooting a Kubernetes service
๐ Reinforce your knowledge with practical tasks in the Day 9 folder of our GitHub repository: github.com/piyushsachdeva/CKA...
๐จ๐ผโ๐ป #40daysofKubernetes Challenge:
Join our 40-day challenge and solidify your Kubernetes skills. Details can be found in the "#40daysofkubernetes.md" file on GitHub or by watching our Day 0 video.
๐ Course Schedule:
I'll release 3-4 videos per week and host live Q&A sessions on weekends to answer your questions and guide you through the CKA certification process.
๐ต๐ปโโ๏ธ Who Should Watch:
This CKA course is designed for beginners, college students, and working professionals who want to learn Kubernetes from scratch, prepare for the CKA certification exam, or enhance their knowledge. It was designed based on the latest curriculum for the CKA exam in May 2024 and uses 1.30.2 as the Kubernetes version.
Let's start your Kubernetes journey together!
๐๐ข๐ ๐ฃ๐๐๐ง๐ ๐ง๐จ๐ง๐ข๐ฅ๐๐๐ ๐ฆ๐๐ฅ๐๐๐ฆ ๐ Itโs ๐ ต๐๐ ด๐ ด โณ
โ ๐๐๐๐ฟ๐ฒ ๐๐ฒ๐๐ข๐ฝ๐ ๐ญ๐ฒ๐ฟ๐ผ ๐๐ผ ๐๐ฒ๐ฟ๐ผ:
โข Azure DevOps Zero to H...
โ ๐๐ญ๐ต๐ฌ๐ฌ ๐๐๐๐ฟ๐ฒ ๐๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ
โข AZ900WithPiyush - Azur...
โ ๐ก๐ฎ๐บ๐ฎ๐๐๐ฒ ๐๐ผ๐ผ๐ด๐น๐ฒ ๐๐น๐ผ๐๐ฑ | ๐๐๐ฃ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐ฏ๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐, ๐ฎ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐๐ฒ ๐ฝ๐น๐ฎ๐๐น๐ถ๐๐ ๐ณ๐ผ๐ฟ ๐๐ต๐ฒ ๐๐๐๐ผ๐ฐ๐ถ๐ฎ๐๐ฒ ๐๐น๐ผ๐๐ฑ ๐๐ป๐ด๐ถ๐ป๐ฒ๐ฒ๐ฟ (๐๐๐) ๐๐ฒ๐ฟ๐๐ถ๐ณ๐ถ๐ฐ๐ฎ๐๐ถ๐ผ๐ป ๐๐ ๐ฎ๐บ:
โข Namaste Google Cloud, ...
โ ๐๐๐๐ฟ๐ฒ ๐๐ฎ๐๐ฎ ๐ณ๐๐ป๐ฑ๐ฎ๐บ๐ฒ๐ป๐๐ฎ๐น๐ ๐๐ฃ ๐ต๐ฌ๐ฌ ๐ณ๐๐น๐น ๐ฐ๐ผ๐๐ฟ๐๐ฒ
โข Microsoft Azure Data F...
โ ๐๐ฒ๐ป๐ธ๐ถ๐ป๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น ๐ณ๐ผ๐ฟ ๐๐ฒ๐ด๐ถ๐ป๐ป๐ฒ๐ฟ๐
โข Jenkins Tutorial For B...
โ ๐ญ๐ฌ๐๐ฒ๐ฒ๐ธ๐๐ผ๐ณ๐ฐ๐น๐ผ๐๐ฑ๐ผ๐ฝ๐ - ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฐ๐ผ๐บ๐ฝ๐น๐ฒ๐ ๐ต๐ฎ๐ป๐ฑ๐-๐ผ๐ป ๐ฝ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐๐ ๐ผ๐ป ๐๐น๐ผ๐๐ฑ ๐ฎ๐ป๐ฑ ๐๐ฒ๐๐ข๐ฝ๐
โข 10WeeksOfCloudOps Chal...
โ ๐๐ฒ๐๐ข๐ฝ๐ ๐ฎ๐ป๐ฑ ๐๐น๐ผ๐๐ฑ ๐ฃ๐ผ๐ฑ๐ฐ๐ฎ๐๐๐:
โข DevOps and Cloud Podcasts
โ ๐๐ถ๐๐น๐ฎ๐ฏ ๐๐ ๐๐ ๐ง๐๐๐ผ๐ฟ๐ถ๐ฎ๐น | ๐๐ป๐ฑ ๐ง๐ผ ๐๐ป๐ฑ ๐ฅ๐ฒ๐ฎ๐น-๐๐ถ๐บ๐ฒ ๐ฃ๐ฟ๐ผ๐ท๐ฒ๐ฐ๐ [๐๐๐น๐น ๐๐ผ๐๐ฟ๐๐ฒ]
โข Gitlab CI CD Tutorial ...
Subscribe to our channel to get notified about the latest videos.
๐ฅ / techtutorialswithpiyush
-----------------------------------------------------------------------------------------------------------------------
๐๐ผ๐ป๐ป๐ฒ๐ฐ๐ ๐บ๐ฒ ๐๐ฒ๐ฟ๐ฒ:๐๐
๐ฅ๐ฌ๐ผ๐๐ง๐๐ฏ๐ฒ โถ / techtutorialswithpiyush
โณ๐๐ถ๐ป๐ธ๐ฒ๐ฑ๐๐ป โถ / piyush-sachdeva
๐๐๐ป๐๐๐ฎ๐ด๐ฟ๐ฎ๐บ โถ / techtutorialswithpiyush
๐๐ง๐๐ถ๐๐๐ฒ๐ฟ โถ / techie_piyush
๐จโ๐ป ๐๐ถ๐๐ต๐๐ฏ โถ github.com/piyushsachdeva
โ ๐ ๐ฒ๐ฑ๐ถ๐๐บ.๐ฐ๐ผ๐บ โถ / piyush.sachdeva055
๐ ๐ฑ๐ฒ๐.๐๐ผ โถ dev.to/piyushsachdeva
โจ๐๐ถ๐๐ฐ๐ผ๐ฟ๐ฑ โถ / discord
-----------------------------------------------------------------------------------------------------------------------
References ๐:
#devops #kubernetes - Vฤda a technologie
Kubernetes Services seems simple now.
Thank you for all of your efforts ๐
Kubernetes is simple, people just made a hype out of it. If you start enjoying Kubernetes, it's all a piece of cake considering you are doing hands-on, facing the issues and fixing the issue. Start with fundamentals and then gradually go in depth
Thank you for this!
My pleasure!
Breaking down the basics with ease and helping laymen like myself make sense of all the endless documents that we can get caught up reading. You are the man Piyush!
It feels great to know that my approach is well received by my viewers and you are seeing value in the content. That's all matters to me :)
Thanks!
Thank you so much! Appreciate it
Thankyou so much piyush , i see lot of value in your content & the way you explain is awesome . on target to complete CKA certification with your videos
Thank you so much
Awesome class ๐.
Thank you for your valuable free content.โคโคโค
you're welcome
Thankyou
Welcome
Couldn't watch for a week. But still able to relate things pretty well. Mastery in teaching. Keep up good work.
Although I'm coming here to revise my kube knowledge. Your teaching skills are pretty neat โค
Well, I try to improve every time I can. Continuous improvement with the help of constant feedback, isn't that what a DevOps engineer does? :) Thank you for your support and feedback. I appreciate it
@@TechTutorialswithPiyush perfectly said. ๐๐
thanks
Thank you for the explanation on Services :)
Happy to help!
amazingcontent
Thank you so much!
Thank you! It took me some time to reproduce and understand service types.
Glad it helped!
thanks Piyush bhai ..really helpful ..
Thank you bro
thanks sir.
Welcome
cfbr โฅ
Thank you, #cka
Welcome!
I installed Kind on the EC2 instance and am working there, while accessing the application 0f 30001 port I am getting a timed-out error, even though I added inbound rules for the node port and NACL is also allowing the port. Could you help me understand where I am getting wrong?
Try accessing nodeip:portnumber
woah.. Damn awesome video Piyush. That was a lot to cover. I dont know why but I got some kind of rush ๐ . Understood all the part. However, I have this question. I know you might have covered in the videos, but still gotta ask. So, what exactly is the heirarchy in kubernetes. i mean I understood the basic like pod is the smallest unit, then node then all nodes form clusters etc. But if we talk on a different level, say replicastes, deployments etc. then what is the heirarchy over here?
Thank you for the feedback! Pod is the smallest deployable unit in Kubernetes but the pod could have multiple containers. Pods are managed by replicaset which is then managed by deployment. Deployments are exposed by services and each of these resources can run on multiple nodes. Collection of similar nodes are called nodepools(cloud related concept) , multiple node pools form a cluster. Resources are also isolated among namespaces(next video) , there are other resources such as Daemonset, cronjobs, job etc which we will be covering in later videos. Hope this helps :)
So Using kind cluster we cannot run application through it has to be run through localhost?
Kind is a local kubernetes installation meaning , everything is running locally and there is no external IP that's been exposed. so, yes it has to be accessed by localhost or you can use kubeadm installation of virtual machines, which we have covered later in the series.
Thanks for the Video Piyush. Can you please make a video on how k8s networking will be handled in production environment
Thanks Pradeep. Networking in production is really a complex topic hence, I did not want to cover for a beginner series. I will try to cover this once I am done with the CKA series.
i want to know does we had done something like port-mapping for kind cluster ?
Yes, we have to do the port mapping for kind. As the containers are acting as node, we have to expose the containers on port
Hi Piyush, How service and pod will talk each other. with help of match lables
Yes, selector helps a pod/deployment to be exposed as a service
What would be real exposed port is 80 or 30001 because in one of my earlier particles getting output from 80 and not from 30001. I used minikube and for kind i use NodePort.
Application is exposed on nodeport hence 30001 also we did the port mapping on 30001. Can you try to do port mapping in kind yaml on port 80 and then see on which port you are able to access the application on?
Thank you very much Piyush can i use the Docker desktop instead of Kind
You're welcome buddy! You can use, but I dont think it has a support for multi node cluster. Kind is simple to setup and use and it uses docker containers as nodes.
@@TechTutorialswithPiyush yes no multide ill setup kind
Hi Piyush, thanks for winderful stuff ! I have one question here, let say if we want to expose few more ports in kind , so we really need to re-create the cluster with new port mappings ?
Yes, you need to recreate the cluster as kind doesnt support cluster update. In day27, we will perform kubeadm installation on virtual machines which eliminate these kind of steps.
@@TechTutorialswithPiyush Awesome Thanks for prompt reply ! Kudos
Sir i have a question. Can we have a service without selector? And what are the industry standards either they use Type LB or something else? Because LB type will be costly.
Hello Salman, No, service needs a selector so that it expose a pod/deployment .
Industry standard is to use a managed cloud loadbalancer(if they are on cloud) , external LB(such ad Big5, Metalb) if they are on-premises or a privata data centre and Ingress for applications exposed externally , for internal use , clusterIP and nodeport for some cases. We will be covering Ingress in video #33
Thanks..!! Very Informative Video
Welcome
Thank you for this!
welcome
Thanks!
Thank you so much! Really appreciate it.