Kubernetes v1.37: Scaling Workloads to Zero with HorizontalPodAutoscaler
18 similar posts
- Kubernetes
- Prometheus
- Prometheus Adapter
AI Summary
Kubernetes v1.37 introduces beta support for scaling workloads down to zero replicas using the HorizontalPodAutoscaler (HPA) with object or external metrics. This native feature eliminates the need for third-party add-ons to handle zero-replica scaling for event-driven architectures like queue consumers and batch processors.
Key Takeaways
- Requires object or external metrics such as Prometheus metrics, as CPU and memory metrics cannot measure load when zero pods are running.
- Distinguishes between automatic zero scaling and manual pausing using the ScaledToZero status condition.
- HTTP and request-based workloads require a separate buffering layer since Kubernetes services do not buffer requests when zero pods are ready.
Why it matters
Native support for scaling down to zero replicas in Kubernetes v1.37 optimizes infrastructure costs for event-driven workloads, batch processors, and queue consumers by removing idle pods that reserve expensive CPU or GPU resources.
Conversation0
What would you add from your experience?
Checking your session…
Every good conversation starts with one perspective.