Autoscaling in Kubernetes
Вставка
- Опубліковано 22 тра 2024
- #kubernetes #autoscaling #devops #fullstackdevelopment
In the deployments chapter of this series, we've seen how to scale our deployments manually. That way, whenever there is unusual traffic, we can scale our deployment accordingly. But, monitoring our traffic continuously and manually scaling our application to handle such traffic spikes is tedious.
What if there is a way to monitor our pods and scale them automatically whenever there is an increase in CPU usage, memory, or some other metric like QPS? This is called autoscaling(scaling automatically based on some metrics). Kubernetes can do that job for us. Not only pods, if we're running on cloud infrastructure, K8s can also spin up additional nodes if the existing nodes can't accept any more pods. In this chapter, we'll learn how different auto-scalers (Horizontal Pod Autoscaler, Vertical Pod Autoscaler, Cluster Autoscaler) work with complete hands-on.
Manifests: github.com/pelthepu/Kubernete...
References:
VPA: github.com/kubernetes/autosca...
CA: github.com/kubernetes/autosca...
Please give a Like and Subscribe to the channel - bit.ly/pavanelthepu
Timestamps:
0:00 - Intro
01:06 - Types of Autoscalers
02:56 - Horizontal Pod Autoscaler
13:18 - Vertical Pod Autoscaler
16:46 - Cluster Autoscaler
My other courses:
Docker Complete Course: • Docker Tutorial | Ful...
Thank you very much!
Your videos are truly remarkable! The clarity of your explanations, coupled with practical examples, sets them apart from anything I've seen before.
Thank you so much. Please share with your friends and colleagues
Your Playlist is a Master Piece . i have done Multiple Udemy Courses , Gone Through UA-cam But None were so Detailed like yours one . Thankyou :)
Thanks for you love❤️ Please subscribe and share with your friends and colleagues
Totally agree.. Thanks Pavan🎉
very informative ..aisa koi nahi abhi tak youtube pe jo ye topic ko itna achha demo dia..thxx alot
Thank you so much Omkar
Good one. Thanks for sharing this knowledge.
so much i learned here, thank you for sharing your knowlegde.
amazing explanation
great video thanks pavan
you deserve more subscribers - your content is GOLD!
Thank you so much Sunil🙂
Awesome video pavan! That is a very clear and concise explanation.
Thank you so much
Clear explanation abt Auto scalling. Thanks for your video.
Thank you. Please share with your friends and colleagues
Very clean explanation Pavan. Thank you very much.
Thank you Deepak. Please share with your friends and colleagues
Really well Explaining Thank you
Thank you Senthil. Please subscribe and share with your friends and colleagues
Hi pawan thanks for making this series.Your entire series is awesome
Can you pls provide document path from where we can access yaml file in good manner
would be awesome if we can have a video around keda event driven scaling video
Really, the way you are explaining...its too easy... thanks sir 🙏🙏 no words
Thank you Jalandhar. Please share with your friends and colleagues
your explain really
good
Thank you. Please subscribe and share with your friends and colleagues
What an explanation! Remarkable video 👏...... I have a question, how and where does vpa sends a recommendation notification if the resources need to be scaled up or down
Thanks pavan
Glad that it helped you. Please subscribe and share with your friends and colleagues
why didn't you explain about the target and uncapped target in VPA, I am specially looking for it only. Can anyone explain me in well about all 4 parts of recommendation in case of VPA
Pavan Bro, I'm very fortunate to see your video, so clear and understandable. Thanks a lot............
Thank you Amogh. Please subscribe and share with your friends and colleagues
I just executed HPA workshop uninterruptedly on my m/c. All my doubts catastrophically imploded. All your tutorials are truly a master piece. You are a gem . thanks a lot dude.
Thank you so much Anil👍
Thanks a lot Pavan, Please teach us init containers and sidecar containers demo with usecases
Sure👍
Can you deep dive with deployments strategies please 🙃
Sure
awesome yar
Thank you. Please subscribe and share with your friends and colleagues
too good
SIr,
If Cluster Auto Scaling searching un schedule pods automatically new vm will create .
But if un schedule pods are present with other reasons.
When does this vpa trigger
😍😍😍😍
hi Pavan, first of all thank you for your video on k8s, you really simplified things too much
Thank you, please subscribe and share with your friends and colleagues
yes of course
i already did
So the HPA target is compared with deployment request right ? limit is optional so it wont compare ?
Monitoring using Prometheus & Grafana.Creating a Dashboard to monitor the Kubernetes cluster and pipelines can you put some videos .
Sure Kalaivani
can I ask you a question, please, regarding mongodb url, I haven't been able to implement the solution
What's that?
I deployed my database, mongodb, with replicaset.
I have 3 replicas. i use headless service the name is "mongo".
i know that i only can R/W in the PREMARY database and only /R from the SECONDARY database .
connection string is like this
"mongodb://mongo-0.mongo,mongo-1.mongo,mongo-2.mongo:27017"
i dont know if this coonection string act like load lancer or i need to have two connection string .
1-"mongodb://mongo-0.mongo:27017" to write in database , PREMARTY
2- "mongodb://mongo:27017" to read data from data base , a load lancer
Can we deploy hpa,vpa nd ca at same time
Yes Pavan
How can I install autoscaling in my windows.?
Autoscaling in Windows? Could you please elaborate your question please?
please provide what erver ur using urls or anything that links in dseciption
I didn’t get you Ramesh. Could you please elaborate?
@@PavanElthepuyour using some github links for installing the vpa..any orther links for installation please proved that also in Below description...it help for practice..
Definitely Ramesh. Added in description
@@PavanElthepu tanq
Sorry pavan can u please share the yaml file .
I have added the link to YAML files in description Kalaivani Palanivel.
github.com/pelthepu/Kubernetes/tree/master/resources/autoscaling
u r telling i think wrong in increse pods means scale out u r telling the scale up and derese means scale down i think
Hmm! With you. Scale up is generally used to increase resources, and scale-out means adding more pods. However, Scale up and Scale out are used interchangeably generally.
Here is the reference from K8s official documentation:
"This means that the HPA is still capable of scaling up if one or more metrics give a desiredReplicas greater than the current value."
Please start training , your explanation is awesome .pls share your contact
Hi Ravindra, I doubt if I have any time left for training😊 Please reach out to me on LinkedIn
Hi Pavan, That's very good explanation with animated images.
If you don't mind can you please share your contact number to clear small queries in explained topics
Thank you Hani Sripadi. You can reach me on LinkedIn, Facebook or Instagram
Are you from Hyderabad location?
Yes
Could you please help me to setup kubernates cluster on Ec2 machine