Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
K8s Scaling Kubernetes Kubernetes: From Zero to Production Module 6 - Scheduling and Scaling

Vertical Pod Autoscaler (VPA) and Cluster Autoscaler

Reviewed & accurate
AI Summary

What You Will Learn

Advanced

  • What VPA does
  • What Cluster Autoscaler does
  • When to use HPA vs VPA vs Cluster Autoscaler
ToolScalesHow
HPAPod countAdd/remove Pods
VPAPod resourcesAdjust CPU/memory requests
Cluster AutoscalerNodesAdd/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.
Previously: Lesson 33 covered HPA.
Today: You learned: Auto-adjust resources and scale nodes.
Next: Lesson 35 covers updates.
Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments