Kubernetes Tutorial #11: Scaling in Kubernetes — HPA, VPA, and KEDA
Your app works great with 2 replicas at normal traffic. But at peak hours it gets 10x more requests. And at 3 AM it gets almost none. Running 10 replicas around the clock wastes money. Running 2 replicas at peak is too slow. Kubernetes can scale your application automatically — up when traffic is high, down when it is quiet. This tutorial covers three autoscaling tools. Three Types of Scaling Type What scales Tool Horizontal Number of Pods HPA, KEDA Vertical CPU/RAM per Pod VPA Cluster Number of nodes Cluster Autoscaler Horizontal scaling adds more copies of your app. Vertical scaling makes each copy bigger. Cluster autoscaling adds more machines to the cluster when all machines are full. ...