Interview Prep/Kubernetes/Resources, autoscaling and scheduling

What is the Vertical Pod Autoscaler and when do you not use it with HPA?

BeginnerScenarioResources, autoscaling and scheduling
Answer

Situation read → A team wants automatic resource tuning.

What I'd do →

  1. Install VPA and create a VerticalPodAutoscaler with updateMode: "Off" to get recommendations
  2. Read them with kubectl describe vpa
  3. Use Auto only for workloads that tolerate restarts
  4. Do not let VPA and HPA both act on CPU for the same Deployment
  5. Consider in-place resize in recent Kubernetes versions

Why → VPA changes requests, which would feed back into HPA's utilisation maths.

Interview tip → Start with recommendation mode.

All Kubernetes questions Roadmap: Kubernetes core

More on Resources, autoscaling and scheduling