Key Takeaways
- Layered architecture: Effective scaling requires coordinating three distinct mechanisms: HPA (pods), VPA (sizing), and Cluster Autoscaler (nodes).
- Cost optimization: True cloud savings live in thoughtful scale-down strategies and right-sized resource requests, not just emergency scale-ups.
- Metric selection: CPU utilization is often a lagging or misleading indicator; modern workloads benefit from custom metrics like request latency or queue depth.
- Configuration discipline: Running HPA and VPA simultaneously on the same pods leads to resource conflicts and unpredictable scaling behavior.
The problem autoscaling solves
Before autoscaling, the answer was manual intervention — a DevOps engineer watching dashboards, spinning up nodes, adjusting pod counts. That works until it doesn’t. Traffic is unpredictable. Engineers have other things to do. And over-provisioning to play it safe is one of the most common drivers of cloud waste and runaway infrastructure bills. Kubernetes autoscaling changes the equation. Instead of a static infrastructure that you size for worst-case load, you get a dynamic system that adjusts itself in response to real demand. More traffic, more resources. Load drops, resources scale back. Automatically. But autoscaling in Kubernetes isn’t a single feature — it’s a layered system of three distinct mechanisms, each operating at a different level of the stack. Understanding how they work individually, and how they interact, is what separates a well-tuned cluster from one that surprises you at the end of the month.The three types of Kubernetes autoscaling
Scales out or in by adding/removing pod replicas based on traffic or custom queue metrics.
Right-sizes CPU and memory requests on existing pods to match actual historical consumption.
Provisions or drains underlying cloud nodes when pods cannot be scheduled due to resource constraints.
Horizontal pod autoscaler (HPA)
The HPA is the most widely used form of autoscaling and the natural starting point for most teams. It works by adding or removing pod replicas in response to observed metrics — most commonly CPU utilization or memory consumption, though modern implementations can scale on custom metrics like request queue depth, latency, or even business-level signals.
- The logic: If CPU utilization across your pods exceeds a defined threshold, Kubernetes spins up additional replicas to distribute the load. When utilization drops below the threshold, it scales back down, typically after a cooldown period to avoid thrashing.
- When to use it: Stateless applications with variable, traffic-driven load — web servers, API gateways, microservices. Any workload where the right response to demand is more instances of the same thing.
- Watch out for: Scaling on CPU alone can be misleading. An application that’s I/O-bound or memory-constrained won’t necessarily show high CPU even under heavy load. Pairing HPA with the right metrics for your specific workload is critical.
Vertical pod autoscaler (VPA)
Where HPA scales horizontally — more pods — VPA scales vertically. Instead of adding replicas, it adjusts the CPU and memory resource requests and limits on existing pods to better match actual consumption.
- The logic: Kubernetes uses resource requests to schedule pods onto nodes. If your pods are consistently requesting 2GB of memory but only using 800MB, you’re wasting node capacity and blocking efficient FinOps allocation. VPA observes actual usage over time and recommends — or automatically applies — right-sized resource configurations.
- When to use it: Stateful applications or workloads where horizontal scaling doesn’t make sense — databases, single-instance services, batch jobs. Also valuable as a diagnostic tool to audit resource accuracy.
- Watch out for: In its default mode, VPA restarts pods to apply new resource configurations. That’s disruptive in production. Many teams run VPA in recommendation-only mode and apply changes during maintenance windows.
Cluster autoscaler
The HPA and VPA operate within your existing cluster infrastructure. The cluster autoscaler operates one level up — it manages the nodes themselves.
- The logic: When the Kubernetes scheduler can’t place a pod because no node has sufficient available resources, the cluster autoscaler provisions a new node from your cloud provider’s node group. Conversely, when nodes are underutilized and their workloads could be consolidated elsewhere, it drains and removes them — returning that capacity to the provider and directly reducing your infrastructure bill.
- When to use it: Any production cluster with variable workloads. The cluster autoscaler is what allows HPA to actually work at scale — there’s no point adding pods if there’s no node capacity to run them on.
- Watch out for: Scale-down is slower than scale-up by design. The cluster autoscaler is conservative about removing nodes to protect against instability, meaning cost savings from reduced load aren’t instantaneous.
By signing up, you agree to Cloud Latitude’s Privacy Policy and Terms of Use.
How the three work together
In a well-architected cluster, all three autoscalers function as a coordinated system:
HPA responds to real-time load by adjusting pod count. VPA ensures each pod is appropriately resourced for its actual workload. The cluster autoscaler ensures the underlying infrastructure expands to accommodate new pods and contracts when they’re no longer needed.
A practical example: A spike in API traffic triggers HPA to scale from 4 pods to 12. The existing nodes can absorb 8 of those pods, but 4 can’t be scheduled. The cluster autoscaler detects the pending pods and provisions two additional nodes. Traffic subsides overnight — HPA scales pods back down, nodes become underutilised, and the cluster autoscaler drains and removes them by morning.
Done right, this happens without any human intervention. Your infrastructure breathes with your workload.
Where teams get it wrong
Autoscaling is powerful, but it’s not passive. The most common traps:
- Setting it and forgetting it: Autoscaling doesn’t eliminate the need for configuration discipline. Default thresholds, inaccurate resource requests, and missing limits can cause erratic scaling behavior — or runaway costs as the system scales up in response to a misconfigured metric.
- Scaling on the wrong signals: CPU is a proxy, not a source of truth. For modern applications, the metrics that actually reflect demand — request latency, queue depth, active connections — are much more meaningful scaling signals.
- Ignoring the scale-down strategy: Teams focus heavily on scale-up. Scale-down is where the cost savings actually live. Without thoughtful cooldown periods, Pod Disruption Budgets (PDBs), and node drain policies, you’ll either scale down too aggressively or not at all.
- Running HPA and VPA together on the same pods: Both try to manage resource allocation and will conflict with each other. Pick one per workload type — HPA for horizontally scalable services, VPA for everything else.
The bottom line
Kubernetes autoscaling is one of the most valuable capabilities the platform offers — but only when it’s configured with intent and backed by sound cloud cost governance. The three mechanisms — HPA, VPA, and cluster autoscaler — each solve a different part of the scaling puzzle, allowing you to build infrastructure that’s genuinely responsive without generating unpredictable cloud bills.
The goal isn’t just a cluster that scales. It’s a cluster that scales intelligently — right-sized, cost-aware, and aligned with how your applications actually behave under load.
Cloud Latitude helps engineering and infrastructure teams design, optimize, and operate cloud environments that scale with confidence. Let’s review your cluster architecture with our engineering team…


