K8s Horizontal Pod Autoscaler | HPA Manifest File Explained | Pod Requests Limits | HPA Demo

  Рет қаралды 42,370

Cloud With Raj

Cloud With Raj

Күн бұрын

In this detailed kubernetes tutorial, we will look at EC2 Scaling Vs Kubernetes Scaling. Then we will dive deep into pod request and limits, Horizontal Pod Autoscaling (HPA) and how to code manifest file for it. Finally we will demo HPA in action!
Kubernetes Reference: kubernetes.io/docs/tasks/run-...
💰👨‍🎓 Get my courses with max discount and 30 day moneyback guarantee: bit.ly/3Eku9RH
*Connect with me*
🤳 Instagram: / cloudwithraj
🏢 LinkedIN: / rajdeep-sa-at-aws
🐦Twitter: / cloudwithraj
🖼 Facebook: / cloudwithraj

Пікірлер: 87
@bibekdas3592
@bibekdas3592 Жыл бұрын
crisp and clear. Saved a lot of my time. Thank you Raj. Simply Brilliant
@tr8811
@tr8811 3 жыл бұрын
Awesome Video, really cleared my concept of HPA, and it is working with Cluster Autoscaler. Thank you Very much for the video.
@CoffeeandBarbell
@CoffeeandBarbell 2 жыл бұрын
Beautifully explained. All my queries are cleared. Thank you.
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad it was helpful Dayananda
@mediatwinkleTV
@mediatwinkleTV 3 жыл бұрын
Dude, you're a real life super hero. keep it up !
@cloudwithraj
@cloudwithraj 3 жыл бұрын
Haha thanks mediatwinkle, glad the video was helpful.
@101BeingHappy
@101BeingHappy Жыл бұрын
Very well explained the concepts of autoscaling at different levels
@durgadeep4988
@durgadeep4988 2 жыл бұрын
Very clear and well illustrated !.
@bhasthod1
@bhasthod1 4 жыл бұрын
Excellent explanation and very apt presentation with the diagrams. Great work Sir...!
@cloudwithraj
@cloudwithraj 4 жыл бұрын
Thanks Thrihesh for the kind words. I am glad you found it useful, thanks for watching.
@007hariharan
@007hariharan Жыл бұрын
Great explanation. I was able to follow. You saved a lot of time. Thanks
@bhuwaneshwarmishra94
@bhuwaneshwarmishra94 2 жыл бұрын
Excellent Raj ....now my all doubts related to HPA is cleared. Thank You so much
@cloudwithraj
@cloudwithraj 2 жыл бұрын
You are most welcome
@alitajvidi5610
@alitajvidi5610 2 жыл бұрын
Thanks Raj! You made my day! Great demo!
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad to hear that!
@deepanshumishra4568
@deepanshumishra4568 2 жыл бұрын
As always awesome video Raj , Thank you so much ♥
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad you liked it
@magician6123
@magician6123 Жыл бұрын
Great video bro. Thank you very much.
@santoshkalamkar8806
@santoshkalamkar8806 2 жыл бұрын
nicely explained.. Thank you so Much!!!
@balsubu1
@balsubu1 2 жыл бұрын
nice one.. simple and neat
@umairqamar2672
@umairqamar2672 Жыл бұрын
u r amazing raj
@bhuwaneshwarmishra94
@bhuwaneshwarmishra94 2 жыл бұрын
I request you Raj to pls guide me step by step creation on jenkins pipeline ....demo to onboard docker service using jenkins pipeline. How we can mention bitbucket repos inside jenkins pipe and build the same.
@syan224
@syan224 2 жыл бұрын
The explanation is really good, thank you
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad it was helpful!
@phucbker
@phucbker 2 жыл бұрын
Thanks for detailed explanation!
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad it was helpful!
@bibonhiquan
@bibonhiquan 2 жыл бұрын
Great presentation! Thanks so much.
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Glad you liked it!
@sreedhargourisetty9324
@sreedhargourisetty9324 Жыл бұрын
Loved it.
@amitkulkarni8813
@amitkulkarni8813 2 жыл бұрын
absolutely great video sir
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Thanks bro, glad you liked it
@sanjoydey8378
@sanjoydey8378 Жыл бұрын
Very good content.
@byteslinger3187
@byteslinger3187 2 жыл бұрын
Raj went beast mode with this tutorial. Very nice work!
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Appreciate it!
@byteslinger3187
@byteslinger3187 2 жыл бұрын
@@cloudwithraj Hey Raj would you be willing to do a consultation? For payment of course. My company is stuck on the last piece to launch our server hosting business. Were having issues using the kubernetes JavaScript client to stream pod logs to our react front end. Its been websocket hell. Any help or advice would be awesome and again we can pay.
@cloudwithraj
@cloudwithraj 2 жыл бұрын
@@byteslinger3187 ​ Ty for the offer! Not doing any consultation currently
@richardlanglois5183
@richardlanglois5183 2 жыл бұрын
Great presentation!
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Thanks for watching
@itsthecrazytom7855
@itsthecrazytom7855 3 жыл бұрын
Great video, really helped me get my head around the HPA concept thanks!
@cloudwithraj
@cloudwithraj 3 жыл бұрын
Very welcome!
@hassanharrison3986
@hassanharrison3986 2 жыл бұрын
i guess I am kind of off topic but do anyone know of a good website to watch newly released tv shows online?
@raylanamir3359
@raylanamir3359 2 жыл бұрын
@Hassan Harrison Flixportal :)
@hassanharrison3986
@hassanharrison3986 2 жыл бұрын
@Raylan Amir Thanks, I went there and it seems to work :D Appreciate it !
@raylanamir3359
@raylanamir3359 2 жыл бұрын
@Hassan Harrison happy to help xD
@samahome
@samahome Жыл бұрын
Excellent explaining
@cloudwithraj
@cloudwithraj Жыл бұрын
Glad it was helpful!
@deepanrajan7430
@deepanrajan7430 4 жыл бұрын
All your kubernetes video are really great, can you please share more videos like ingress controler, node affinity
@cloudwithraj
@cloudwithraj 4 жыл бұрын
Thanks for the kind words. Couple more Kubernetes videos coming soon!
@bhupeshmaduskar9581
@bhupeshmaduskar9581 Жыл бұрын
it was very well explained , i have gone through many videos and docs . but getting more and more confused . specially explanation for targetCPUUtilizationPercentage was so much required . having it in demo is another level .
@cloudwithraj
@cloudwithraj Жыл бұрын
Glad it helped
@navnathdahibhate2464
@navnathdahibhate2464 2 жыл бұрын
Nice Explanation 👍😊
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Thanks 🙂
@pavannannapaneni4586
@pavannannapaneni4586 2 жыл бұрын
Great demonstration. Question, how does the pod updates rolls out in HPA? For instance, I have HPA defined with minReplica's as 2 and max as 10, pods got scaled correctly when deployment triggered. However when I roll out update, it is supposed to bounce both the pods with new config, however I am seeing only 1 pod get bounced and I need to bounce the other one manually. How do I fix this?
@reardeltoit4644
@reardeltoit4644 3 жыл бұрын
thank you
@rajuk1773
@rajuk1773 Жыл бұрын
Thank you so much
@cloudwithraj
@cloudwithraj Жыл бұрын
You're most welcome
@fabioszymanski
@fabioszymanski 2 жыл бұрын
Wowwwww
@yathishgowda4847
@yathishgowda4847 Жыл бұрын
Great video, can we use prometheus instead metrics server ??
@gdevelek
@gdevelek 3 жыл бұрын
In the CPU resource requests and limits 0.5 and 1.0 are NOT percentage numbers, they are ABSOLUTE numbers, and express cores. 0.5 means half a core. You need to correct this.
@durbabanik3372
@durbabanik3372 6 ай бұрын
life saver
@damonzh588
@damonzh588 3 жыл бұрын
spec: maxReplicas: 8 minReplicas: 2 scaleTargetRef: apiVersion: apps/v1 kind: Deployment name: nginx targetCPUUtilizationPercentage: 60
@pclokcer
@pclokcer 2 жыл бұрын
veryy good. thanksssss
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Welcome 😊
@alitajvidi5610
@alitajvidi5610 2 жыл бұрын
Thanks!
@cloudwithraj
@cloudwithraj 2 жыл бұрын
Wow, TY Ali for the donation, much appreciated.
@stasberkov
@stasberkov Жыл бұрын
Small correction: mebibyte uses 1024 as base, while megabyte uses 1000 as base.
@kaustubhmishra3973
@kaustubhmishra3973 3 жыл бұрын
What if I want to have more than 512 mib for a pod? Do we then need to increase the millicores? Also can we take any amount of millicores like 567 or 666?
@MrAjsanpedro
@MrAjsanpedro 4 жыл бұрын
Hi thank you for this video, I just need to ask on 9:47 is it also possible to monitor the targetMemoryUtilizationPercentage in HPA?
@cloudwithraj
@cloudwithraj 4 жыл бұрын
Yeah, it's possible. HPA can monitor lot of advanced metrics beyond the basic ones.
@PauloEduardoftw
@PauloEduardoftw 3 жыл бұрын
Executing kubectl get hpa, is returned 45%/50% with 3 replicas, for instance. This 45%, is the sum of all pods or among these 3 pods, is the pod with highest percentage? Nice explanation, I just would like to understand better this metric.
@sarojnayak1024
@sarojnayak1024 Жыл бұрын
🆒👍
@balajiveerasingam3602
@balajiveerasingam3602 Жыл бұрын
on resources section, we are providing request and limit for cpu. A pod will be created with request cpu then how come it grows to use limit cpu ? Kindly clarify how request grows to complete the limit cpu
@singaravelannandani7037
@singaravelannandani7037 2 жыл бұрын
Eks namespace access level via aws sso video also we are looking...
@RahulSingh-ng9vi
@RahulSingh-ng9vi Жыл бұрын
But what is the role of cpu limit in hpa scalling up and down, do we really need it or we should remove it
@user-up1xf2lq4y
@user-up1xf2lq4y Жыл бұрын
I have set up my test program very similar to yours. I used apache2 ab command line to increase the load. I was able to see the number of pods increases as the cpu usages goes high. However, there was no time difference in Time per request or Total time taken when I manually increased number of replicas(let's say from replicas=2 to 4) . I played around number of request and number of concurrent requests options from ab command line. I was able to see an improvement in time per request with very particular set of request and concurrent request. I checked CPU usage with htop and it used 100% of CPU in very particular situation. So I had to make conclusion that increasing replicas doesn't always guarantee better performance for user's experience. I want to hear your opinion on this. Thank you
@aniceguy241
@aniceguy241 7 ай бұрын
because the purpose is to achieve higher availability, not better performance in speed, HA != faster
@umanaik8142233886
@umanaik8142233886 2 жыл бұрын
Can deployment has multiple replica s ? I mean deployment must have more than one replica to ensure ...!
@aefwon3936
@aefwon3936 3 жыл бұрын
where is the reference for the app, like selector shud be there in the HPA config, explanation is indeed good, but i think i missed it
@ibrahimaydin8301
@ibrahimaydin8301 2 жыл бұрын
I have an error : wget: can't connect to remote host:Connection refused. How can i fix it. My service type is ClusterIP
@fooslinger
@fooslinger 2 жыл бұрын
Kube will throttle the pod if cpu usage exceeds limit. Not kill it. There are other circumstances where kube will terminate pods.
@saitejareddygurujala2534
@saitejareddygurujala2534 2 жыл бұрын
omg content.. can we have your Udemy course link? would try to enroll it
@cloudwithraj
@cloudwithraj 2 жыл бұрын
bit.ly/3Eku9RH , max discount going on right now, expiring Monday
@McMurchie
@McMurchie Жыл бұрын
Can you scale based on memory?
@cloudwithraj
@cloudwithraj Жыл бұрын
Yeah!
@ranutoshniwal
@ranutoshniwal 3 жыл бұрын
How to change default values in hpa
@QuangPham-bc7lc
@QuangPham-bc7lc 7 ай бұрын
why this dashboard get the metrics so long?
@ajaykharat8832
@ajaykharat8832 Жыл бұрын
kubernetes-sigs/metrics-server/releases/download/v0.3.7/components.yaml": no matches for kind "APIService" in version "apiregistration.k8s.io/v1beta1" ensure CRDs are installed first
Understanding CPU & Memory with the Kubernetes Vertical Pod Autoscaler
22:12
Kubernetes Deployment Tutorial - yaml explained + Demo
19:39
Cloud With Raj
Рет қаралды 95 М.
Smart Sigma Kid #funny #sigma #comedy
00:26
CRAZY GREAPA
Рет қаралды 18 МЛН
39kgのガリガリが踊る絵文字ダンス/39kg boney emoji dance#dance #ダンス #にんげんっていいな
00:16
💀Skeleton Ninja🥷【にんげんっていいなチャンネル】
Рет қаралды 8 МЛН
Spot The Fake Animal For $10,000
00:40
MrBeast
Рет қаралды 159 МЛН
Alex hid in the closet #shorts
00:14
Mihdens
Рет қаралды 13 МЛН
Do NOT Learn Kubernetes Without Knowing These Concepts...
13:01
Travis Media
Рет қаралды 255 М.
Kubernetes ConfigMap and Secret as Kubernetes Volumes | Demo
16:54
TechWorld with Nana
Рет қаралды 194 М.
Autoscaling in Kubernetes
19:07
Pavan Elthepu
Рет қаралды 20 М.
Kubernetes Network Policy Tutorial - yaml explained + Demo Calico
15:35
[ Kube 35 ] Using Horizontal Pod Autoscaler in Kubernetes
24:59
Just me and Opensource
Рет қаралды 38 М.
Samsung laughing on iPhone #techbyakram
0:12
Tech by Akram
Рет қаралды 3,4 МЛН
Ноутбук за 20\40\60 тысяч рублей
42:36
Ремонтяш
Рет қаралды 323 М.
Лазер против камеры смартфона
1:01
NEWTONLABS
Рет қаралды 709 М.
Телефон-електрошокер
0:43
RICARDO 2.0
Рет қаралды 1,3 МЛН
Сколько реально стоит ПК Величайшего?
0:37