Autoscaling Strategies

The Kubernetes autoscaling toolkit, when each fits, and predictive vs reactive scaling.

Overview

Why autoscaling exists

Autoscaling automates capacity decisions. It is never the whole story, since you still need capacity planning, but it absorbs predictable variance and rare spikes.

In Kubernetes a scaling decision passes through two layers.

  • A metric such as CPU, RPS or queue depth rises.
  • The pod layer (HPA, KEDA or VPA) responds by adding pods or resizing them.
  • If the new pods are pending because no node has room, the node layer (Karpenter or Cluster Autoscaler) adds nodes, and the capacity is ready once they join.
  • If no pods are pending, the capacity is ready as soon as the pod layer acts.

A forecast can also feed the pod layer ahead of the metric. That is predictive scaling.

> [!IMPORTANT] The 2026 best practice layers predictive and reactive scaling. Predictive handles the daily peak baseline; reactive handles unpredictable spikes.

Key concepts

  • HPA
  • KEDA
  • Karpenter
  • Predictive scaling
  • Target tracking
  • Cooldown / hysteresis

Interview questions

  • When do you use HPA, KEDA, and Karpenter together?
  • How do you avoid autoscaling thrashing?
  • When does predictive scaling help vs reactive?

Sign up free to read the full topic

More SRE topics

Start free on Cariara · Coding problems · System design studio