What You Will Learn
Advanced
- What VPA does
- What Cluster Autoscaler does
- When to use HPA vs VPA vs Cluster Autoscaler
| Tool | Scales | How |
|---|---|---|
| HPA | Pod count | Add/remove Pods |
| VPA | Pod resources | Adjust CPU/memory requests |
| Cluster Autoscaler | Nodes | Add/remove VMs |
HPA + Cluster Autoscaler = the standard
HPA scales Pods when CPU is high. When no more Pods fit on existing nodes, Cluster Autoscaler adds a new node. When load drops, HPA removes Pods, Cluster Autoscaler removes the node. This is the standard production setup.Practical Exercise
Understand: HPA = Pod count, VPA = Pod resources, CA = nodes
Think: when would you use VPA instead of HPA?
Think: when would you need Cluster Autoscaler?
Research: how does Cluster Autoscaler interact with cloud providers?
Key Takeaways
- HPA: scale Pod count (horizontal).
- VPA: adjust Pod resource requests (vertical).
- Cluster Autoscaler: add/remove nodes.
- HPA + Cluster Autoscaler = standard production setup.
- VPA is less common - mainly for fine-tuning resources.
Comments
Comments
Post a Comment