Kubernetes pod autoscaling for beginners

  Рет қаралды 32,513

That DevOps Guy

That DevOps Guy

Күн бұрын

Пікірлер: 42
@MarcelDempers
@MarcelDempers 4 жыл бұрын
In this episode we learn how to scale pods with the horizontal pod autoscaler. To scale your cluster nodes, checkout the Cluster Autoscaler 👉🏽 kzbin.info/www/bejne/oH6WZ4BpbrJ0aas
@ibrahemazad
@ibrahemazad Жыл бұрын
the best video I ever watched on the internet explaining HPA
@tiagomedeiros7935
@tiagomedeiros7935 3 жыл бұрын
I read many articles on many sites and watch many videos to understand pod autoscaler, but all this time, I just needed to watch this video. Thank you.
@yovangrbovich3577
@yovangrbovich3577 4 жыл бұрын
Great content as usual, and the production quality is constantly getting better too! Awesome
@emergirie
@emergirie 2 жыл бұрын
Nice discover I like the way you explaining dude thanks for effort.I subscribe and will let other people know you
@prabhatnagpal
@prabhatnagpal Жыл бұрын
Thank you so much for making this concept easy to understand. Actually, I was also struggling setting the values of cpu requests and limits in the deployment, because in my Kubernetes even when the replicas increase, it starts running all pods with same load and didn't distribute evenly among the pods to make it come down and I have faced bad behaviour of scaling in my cluster. I have no clue what is happening
@DevsLikeUs
@DevsLikeUs 4 жыл бұрын
Not having to provision infrastructure is awesome, thank you for the great video.
@5happy1
@5happy1 4 жыл бұрын
Such a well-done video! Can't believe you haven't gone huge yet. I don't usually comment on KZbin but I felt compelled this time. Looking forward to going through more of your library of content as I get more into Kubernetes and DevOps in general.
@Gandolfof
@Gandolfof 4 жыл бұрын
Thank you very much! Please make a video on kubernetes e2e testing.
@vuhaiang2077
@vuhaiang2077 2 жыл бұрын
Congrats on the excellent and well-explained video. However as your example at 7:39, the only resource scaled is CPU, not MEMORY (after scaling up to 4 replicas the memory of each pod remain unchanged). I wonder is this something obvious? And if so how can we actually scale base on memory consumed?
@MarcelDempers
@MarcelDempers 2 жыл бұрын
Kubernetes hpa supports memory as well. In the demo I used CPU as its the most common one
@vuhaiang2077
@vuhaiang2077 2 жыл бұрын
@@MarcelDempers I understand. Thank you very much
@dangvu534
@dangvu534 2 жыл бұрын
Clearly explained and really useful for beginners, excellent work! May you kindly reply my small question: how can we estimate the resources request and limit for some specific pods?
@MarcelDempers
@MarcelDempers 2 жыл бұрын
The vertical pod autoscaler in recommendation mode can make recommendations on request values. There's a video on that in the channel. Also the latest monitoring video will also help 💪🏽
@torbendury4374
@torbendury4374 4 жыл бұрын
Again, great content delivered in an easy way and also essy to reproduce. Thanks!
@AmjadW.
@AmjadW. 3 жыл бұрын
You're awesome! kudos to your efforts
@janco333
@janco333 3 жыл бұрын
How do you select a good minimum pod count for the hpa? I see this constant oscillation of it scaling up and down. Should i set my minimum above my normal load?
@elmeroranchero
@elmeroranchero 4 жыл бұрын
Amazing, thank you very much, loved the edition and the concise way o explaining
@parasprince2001
@parasprince2001 4 жыл бұрын
can you provide some sort of breakdown of which autoscaling API supported in which k8s version?
@MarcelDempers
@MarcelDempers 4 жыл бұрын
I don't see this formally documented anywhere, however, you can run `kubectl api-version" in your cluster to see what API versions it supports. I would also recommend looking at the HPA documentation of Kubernetes to see features of what's coming in future versions
@nikoladacic9800
@nikoladacic9800 4 жыл бұрын
Good lecture. Good presentation. Interesting fast and to the point. Good job man!!! Keep it coming and thanks. Deserved my SUB definitely. :)
@inf222
@inf222 3 жыл бұрын
Such great work deserves like and comment))
@ankitguhe5015
@ankitguhe5015 3 жыл бұрын
Absolutely useful video, you saved my job 🤣 thanks a ton mate!
@vinayaknawale1015
@vinayaknawale1015 4 жыл бұрын
Nicely explained can you make video on eks with cluster autoscaler + hpa + ingress
@MarcelDempers
@MarcelDempers 4 жыл бұрын
Thank you 💪🏽 You should be able to follow the sequence: EKS 👉🏽kzbin.info/www/bejne/h4XLkpeJaLiin8k CA 👉🏽kzbin.info/www/bejne/oH6WZ4BpbrJ0aas HPA 👉🏽kzbin.info/www/bejne/fJenemNuqMylj7s Ingress 👉🏽kzbin.info/www/bejne/q2qXaXaLh7F3gKM
@gouterelo
@gouterelo 4 жыл бұрын
In an HA cluster, metrics needs another modification... but i dont remmeber where...
@creative-commons-videos
@creative-commons-videos 3 жыл бұрын
hey there, can you please tell me how can i use nginx ingress in my cluster, I am using IBM cloud computing for cluster but the problem is currently i am on Lite plan which does not allow to create LoadBalancer, so how can i deploy my website using domain name on IBM ???
@MarcelDempers
@MarcelDempers 3 жыл бұрын
It will be an issue im afraid. Kubernetes allows NodePort but its not recommended for production workloads and will give you other issues like restrictions to port range which is not 80 or 443. Also make it hard to run your pods behind multiple nodes. If its your personal website, I would highly recommend Linode or Digital Ocean. Kubernetes is cheap to run there, their UI and UX is brilliant and an LB is around $10 a month too.
@creative-commons-videos
@creative-commons-videos 3 жыл бұрын
@@MarcelDempers thanks buddy
@derekreed6798
@derekreed6798 Жыл бұрын
Nice vid
@sachin-sachdeva
@sachin-sachdeva 4 жыл бұрын
Thanks Marcel. This all is load based - is there a way where I can define it time based e.g. if there is a heavylifting job runs on my cluster between 2-4 AM and I can not afford to miss it?
@MarcelDempers
@MarcelDempers 4 жыл бұрын
Maybe checkout a project called Keda. it may support exactly what you need 💪🏽
@maratbiriushev7870
@maratbiriushev7870 3 жыл бұрын
Thank you!
@imranarshad221
@imranarshad221 4 жыл бұрын
Thanks for great Demo. Quick question, How come Pod could go to 1493m CPU when we allocated 500m ? Isn't that hard limit ?
@MarcelDempers
@MarcelDempers 4 жыл бұрын
Thank you 💪🏽, no the 500m is the requested value which is used for scheduling
@imranarshad221
@imranarshad221 4 жыл бұрын
@@MarcelDempers Thank you makes sense . If I Only need one pod , Is there a way to put hard limit so single pod doesn't eat up all the memory ?
@MarcelDempers
@MarcelDempers 4 жыл бұрын
@@imranarshad221 Sure there is. Just remember if that pod hits its limit, it will be terminated by the OOM killer and restarted kubernetes.io/docs/concepts/configuration/manage-resources-containers/#requests-and-limits
@yuryzinovyev6186
@yuryzinovyev6186 3 жыл бұрын
Thank you so much!
@martinzen
@martinzen 4 жыл бұрын
Absolutely killer video my man, much appreciated. Noob question: does the metrics server require a separate node for a production deployment? Or does it just run in the same k8s service process, the way a plugin would? It would be useful to have a better idea of how this maps to actual cloud infra in terms of VMs/nodes, etc.
@MarcelDempers
@MarcelDempers 4 жыл бұрын
Thanks for the kind words 💪🏽For production, Metric server can run on any node where it can be scheduled. Many cloud providers have metric server already installed in the kube-system namespace
@bullet_bg
@bullet_bg 2 жыл бұрын
thanx gold
@luc3r384
@luc3r384 3 жыл бұрын
materclass!
Kubernetes cluster autoscaling for beginners
12:55
That DevOps Guy
Рет қаралды 53 М.
Understanding StatefulSets in Kubernetes
28:44
That DevOps Guy
Рет қаралды 49 М.
Une nouvelle voiture pour Noël 🥹
00:28
Nicocapone
Рет қаралды 9 МЛН
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 30 МЛН
What is Kubernetes AFFINITY ?
17:28
That DevOps Guy
Рет қаралды 7 М.
Understanding CPU & Memory with the Kubernetes Vertical Pod Autoscaler
22:12
Redis on Kubernetes for beginners
21:18
That DevOps Guy
Рет қаралды 43 М.
Persistent Volumes on Kubernetes for beginners
18:47
That DevOps Guy
Рет қаралды 55 М.
What are Kubernetes HEALTH probes ?
16:08
That DevOps Guy
Рет қаралды 7 М.
How Autoscaling Works In Kubernetes (And Beyond)? Kubernetes Tutorial
30:55
Free SSL for Kubernetes with Cert-Manager
19:14
That DevOps Guy
Рет қаралды 75 М.
Kubernetes Pods, ReplicaSets, and Deployments in 5 Minutes
4:57
Containers from the Couch
Рет қаралды 21 М.