Day 9/40 - Kubernetes Services Explained - ClusterIP vs NodePort vs Loadbalancer vs External

  Рет қаралды 10,379

Tech Tutorials with Piyush

Tech Tutorials with Piyush

Күн бұрын

Пікірлер: 115
@codinggeeg
@codinggeeg 20 күн бұрын
You’re a genius! I never realized Kubernetes could be this simple until I watched your videos. You explain things so clearly-it just clicks. I’ve explored so many other channels for Kubernetes, but none compare to yours. You truly deserve at least a million subscribers. Keep up the amazing work; you're making a huge impact!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 20 күн бұрын
Glad to hear you're finding my videos helpful, I'm working hard to make them as clear as possible! 💪
@codinggeeg
@codinggeeg 17 күн бұрын
@@TechTutorialswithPiyush ❤
@rajbir_singh0517
@rajbir_singh0517 2 ай бұрын
i am fresher no idea of any thing and trust me i am getting all concept like piece of cake. Thank you for such valuable contribution.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Complete this series including all the tasks in GitHub and you won't consider yourself a fresher! All the best :)
@ruddyivanclarosfernandez8526
@ruddyivanclarosfernandez8526 Ай бұрын
Thank you Piyush!!!
@MihirModi-ix7zw
@MihirModi-ix7zw 2 ай бұрын
One of the most important things you mentioned, sir, is exposing the IP address to the external world. An amazing and informative video!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Glad you found it helpful Mihir :)
@OleksandraPalmer
@OleksandraPalmer Ай бұрын
I'm learning SO much! Thank you!
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
It feels great to know 😀 Thank you for the feedback
@VarunK-ot6gm
@VarunK-ot6gm 29 күн бұрын
Just amazing, thanks a lot for the effort
@TechTutorialswithPiyush
@TechTutorialswithPiyush 28 күн бұрын
I'm glad you enjoyed it!
@nope-ms4rx
@nope-ms4rx 4 ай бұрын
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!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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 :)
@sonalpriya5503
@sonalpriya5503 4 ай бұрын
Kubernetes Services seems simple now. Thank you for all of your efforts 🙂
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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
@varunjoshi4410
@varunjoshi4410 Ай бұрын
Thank you!
@senthilkumar5129
@senthilkumar5129 18 күн бұрын
Excellent thank you
@TechTutorialswithPiyush
@TechTutorialswithPiyush 18 күн бұрын
Appreciate it! 👍
@kmkumar0204
@kmkumar0204 2 ай бұрын
If you're running Kubernetes on-premises or in a cloud environment that doesn't directly support LoadBalancer services (e.g., bare metal or a local development environment), you might need to use an Ingress Controller for managing external access to services. Ingress provides more advanced routing rules, such as URL-based routing, SSL termination, etc
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Agree with you!
@roia6011
@roia6011 3 ай бұрын
Clear and simple , thank you !
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Glad it helped!
@vm_naveen
@vm_naveen 4 ай бұрын
Thank you for the explanation on Services :)
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Happy to help!
@artbart9080
@artbart9080 4 ай бұрын
Thank you! It took me some time to reproduce and understand service types.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Glad it helped!
@smitpatel700
@smitpatel700 3 ай бұрын
Really thanks for your efforts. Till now I haven't find any problem to understand and implement the concepts. Thanks a lot.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Awesome, I'm glad to know that 😁
@floehden
@floehden 4 ай бұрын
Thank you for this!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
welcome
@guntreddirajesh
@guntreddirajesh 4 ай бұрын
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
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you so much
@safooraNousheen
@safooraNousheen Ай бұрын
Day-9 completed
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
let's go 🚀
@alvarosanz4301
@alvarosanz4301 2 ай бұрын
Very helpful video!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Thank you!
@kanikv4480
@kanikv4480 4 ай бұрын
Awesome class 🎉. Thank you for your valuable free content.❤❤❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
you're welcome
@GizMOLoopTech
@GizMOLoopTech 4 ай бұрын
thanks Piyush bhai ..really helpful ..
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you bro
@DK-Tank01
@DK-Tank01 3 ай бұрын
Very Good Explanation
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Keep watching
@vinaykumar-qq9wq
@vinaykumar-qq9wq 4 ай бұрын
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 ❤
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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
@vinaykumar-qq9wq
@vinaykumar-qq9wq 4 ай бұрын
@@TechTutorialswithPiyush perfectly said. 👏👏
@GrigTech
@GrigTech 2 ай бұрын
Thank YOu PIyush
@akifsalah9686
@akifsalah9686 4 ай бұрын
Thanks..!! Very Informative Video
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Welcome
@maheshwarareddy8629
@maheshwarareddy8629 3 ай бұрын
very informative
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
Glad it was helpful!
@AnujDixit-h1o
@AnujDixit-h1o 4 ай бұрын
thanks
@Imran_kpk
@Imran_kpk 3 ай бұрын
V imperative thanks ❤❤
@ebenezerbarning5093
@ebenezerbarning5093 4 ай бұрын
thanks sir.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Welcome
@AbdulMateen-bm3kv
@AbdulMateen-bm3kv 3 ай бұрын
super sir
@sagarbirla2879
@sagarbirla2879 4 ай бұрын
amazingcontent
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you so much!
@atrofsk
@atrofsk 4 ай бұрын
Thanks!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you so much! Really appreciate it.
@ketankanadekets
@ketankanadekets 2 ай бұрын
@tendaimakuwerere5693
@tendaimakuwerere5693 4 ай бұрын
Thank you, #cka
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Welcome!
@pradeepnpkumar1881
@pradeepnpkumar1881 4 ай бұрын
Thanks for the Video Piyush. Can you please make a video on how k8s networking will be handled in production environment
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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.
@kmkumar0204
@kmkumar0204 2 ай бұрын
I assume Piyush used his own K8s cluster deployed on AWS EC2 so LoadBalancer does not allocate a externalIP, however if you use any cloud provider ( manged K8s) then the manifest file will assign ExternalIP when its applied using the k apply command. thats the difference.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
That is true, I have used Kind cluster on my laptop that is why there is no external LB or external IP allocation.
@Anonymous_810
@Anonymous_810 4 ай бұрын
cfbr ♥
@karnajeetsawant5635
@karnajeetsawant5635 4 ай бұрын
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?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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 :)
@radhikagudidesi5486
@radhikagudidesi5486 4 ай бұрын
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?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Try accessing nodeip:portnumber
@singhr49
@singhr49 Ай бұрын
Great Content, thanks for creating this. What tool do you use to record this session?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
Thanks Buddy, I use OBS
@hiranyawg
@hiranyawg 4 ай бұрын
Thank you very much Piyush can i use the Docker desktop instead of Kind
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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.
@hiranyawg
@hiranyawg 4 ай бұрын
@@TechTutorialswithPiyush yes no multide ill setup kind
@popurisrinivas5479
@popurisrinivas5479 4 ай бұрын
Hi Piyush, How service and pod will talk each other. with help of match lables
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Yes, selector helps a pod/deployment to be exposed as a service
@password301992
@password301992 4 ай бұрын
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 ?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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.
@password301992
@password301992 4 ай бұрын
@@TechTutorialswithPiyush Awesome Thanks for prompt reply ! Kudos
@ketankanadekets
@ketankanadekets 2 ай бұрын
One quick question reg. NodePort svc Is NodePort svc binded to k8s node ?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
correct
@yashgajendragadkar
@yashgajendragadkar 2 ай бұрын
If I do not add extraPortMappings: - containerPort: hostPort: when creating a Kind cluster, will I still be able to expose the Service to the outside world using a LoadBalancer type service?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
Hello Yash, No , it will not work as the Kind cluster treats docker containers as Nodes, you have to expose these containers(Nodes) with the help of extraPortMapping. I hope I was able to answer the question.
@yashgajendragadkar
@yashgajendragadkar 2 ай бұрын
Thanks !@@TechTutorialswithPiyush
@yudi281
@yudi281 Ай бұрын
why do we need loadbalancer service if we already have nodeport service it is also distributing the traffic between nodes right?
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
With nodeport , you pass the traffic on a particular node and port, loadbalancer helps you expose the service externally, they have different purpose
@sudheersen8227
@sudheersen8227 3 ай бұрын
sir , 37:00 how to access application using cluster ip ? that cluster ip is not working when i am trying to acces application from the browser
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
It should work on localhost:nodeport as this is what we used to expose the service
@hetpatel1772
@hetpatel1772 4 ай бұрын
i want to know does we had done something like port-mapping for kind cluster ?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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
@sarrlink8395
@sarrlink8395 3 ай бұрын
Hello, I think there is an oversight regarding the creation of the cka-cluster3 cluster. If we look closely the version of the node is V1.30 instead of v1.29.4. You forgot to --image kindest/node:v1.29.4@sha256:3abb816a5b1061fb15c6e9e60856ec40d56b7b52bcea5f5f1350bc6e2320b6f8. THANKS.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
When we didn't add the image details, it takes the latest version by default
@sarrlink8395
@sarrlink8395 3 ай бұрын
OK thanks@@TechTutorialswithPiyush
@BhaveshKansagaraOfficial
@BhaveshKansagaraOfficial 4 ай бұрын
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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?
@akifsalah9686
@akifsalah9686 4 ай бұрын
So Using kind cluster we cannot run application through it has to be run through localhost?
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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.
@shivanshusharma20.07
@shivanshusharma20.07 2 ай бұрын
sir i created nodeport but i cannot access it on browser. With curl i can access node port. I am using minikube in google cloud. Please guide how i ca access nodeport on browser??
@TechTutorialswithPiyush
@TechTutorialswithPiyush 2 ай бұрын
As you are using minikube on a gcp vm, it should be accessible on vmexternalip:nodeport
@Ganesh-tc4pi
@Ganesh-tc4pi 3 ай бұрын
How can we rollouts multiple deployments like i have applied nginx scond jenkins and third tomcat images so how can rollout these
@TechTutorialswithPiyush
@TechTutorialswithPiyush 3 ай бұрын
For that you use package managers such as Helm and CICD tools, We will cover those once we are done with this series.
@salmanbintariq007
@salmanbintariq007 4 ай бұрын
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.
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
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
@shrihariharidas2817
@shrihariharidas2817 Ай бұрын
Hi Piyush When I try ro create cluster 3 23:16 in the video, I am facing issue with ✗ Preparing nodes 📦 📦 📦 Deleted nodes: ["cka-cluster3-worker" "cka-cluster3-control-plane" "cka-cluster3-worker2"] ERROR: failed to create cluster: could not find a log line that matches "Reached target .*Multi-User System.*|detected cgroup v1"
@TechTutorialswithPiyush
@TechTutorialswithPiyush Ай бұрын
This is a known issue and here's the solution github.com/kubernetes-sigs/kind/issues/3423#issuecomment-1872074526
@shrihariharidas2817
@shrihariharidas2817 Ай бұрын
@@TechTutorialswithPiyush Thanks it work
@gabrielakins8240
@gabrielakins8240 4 ай бұрын
Thank you for this!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
My pleasure!
@hiranyawg
@hiranyawg 4 ай бұрын
Thanks!
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Thank you so much! Appreciate it
@gurum2364
@gurum2364 4 ай бұрын
Thankyou
@TechTutorialswithPiyush
@TechTutorialswithPiyush 4 ай бұрын
Welcome
Day 10/40 - Kubernetes Namespace Explained - CKA Full Course 2025
27:56
Tech Tutorials with Piyush
Рет қаралды 7 М.
Kubernetes NodePort vs LoadBalancer vs Ingress
6:27
Anton Putra
Рет қаралды 81 М.
The Singing Challenge #joker #Harriet Quinn
00:35
佐助与鸣人
Рет қаралды 47 МЛН
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 74 МЛН
Day 20/40 - SSL/TLS Explained Simply - How SSL/TLS Works?
26:08
Tech Tutorials with Piyush
Рет қаралды 7 М.
Day 11/40 - Multi Container Pod Kubernetes - Sidecar vs Init Container
25:13
Tech Tutorials with Piyush
Рет қаралды 6 М.
Ollama on Kubernetes: ChatGPT for free!
18:29
Mathis Van Eetvelde
Рет қаралды 6 М.
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 324 М.
Day 31/40 - Understanding CoreDNS In Kubernetes
19:18
Tech Tutorials with Piyush
Рет қаралды 5 М.
Day 12/40 - Kubernetes Daemonset Explained - Daemonsets, Job and Cronjob in Kubernetes
19:31