On this page
Kubernetes gives you extraordinary flexibility — and an extraordinary ability to pay for capacity you never use. Clusters are usually billed by the node, while teams think in pods, so waste hides in the gap between what pods request and what they actually use. A handful of disciplined practices keep clusters efficient without sacrificing reliability.
Where the money in a cluster goes
Before tuning anything, split the bill into the parts you can act on. For each node, three numbers matter: what it can offer (allocatable), what pods have reserved (requests) and what they actually consume (usage). Allocatable minus requests is idle capacity. Requests minus usage is slack. Both are paid for.
- Worker nodes, usually the largest line, driven by requests rather than usage.
- Control plane and support fees. On EKS, AWS charges $0.10 per cluster per hour during the 14 months of standard support for a Kubernetes version, and $0.60 per cluster per hour for the 12 months of extended support after that (as of October 2026). A cluster that falls behind on upgrades costs six times as much to run its control plane.
- Load balancers and public IPs created by
Serviceobjects of typeLoadBalancer, often one per service when a shared ingress would do. - Persistent volumes and snapshots that outlive the workloads that created them.
- Network: cross-zone traffic between chatty services, NAT egress and image pulls.
- Observability: log and metric ingestion, which in a busy cluster can rival a node pool.
- Per-cluster overhead: system pods and agents that run on every node, multiplied by every small cluster you keep.
Version support matters for cost as well as security. As of October 2026 the upstream project supports Kubernetes 1.37, 1.36 and 1.35; 1.35 reaches end of life on 28 February 2027, 1.36 on 28 June 2027 and 1.37 on 28 October 2027. Managed services run their own calendars, so check your provider's dates and plan upgrades before the fee changes.
Set requests and limits that reflect reality
Resource requests drive scheduling: the scheduler reserves that much CPU and memory on a node, whether the pod uses it or not. Requests set too high reserve capacity that sits idle, and you pay for more nodes. Requests set too low let the scheduler overpack nodes, which leads to noisy-neighbour contention and, under memory pressure, evictions.
Limits behave differently per resource: a container that hits its CPU limit is throttled, while one that exceeds its memory limit is OOM-killed. A common, sensible starting point is to set memory requests close to real usage with a memory limit, and to be cautious with CPU limits on latency-sensitive services. Base the numbers on observed usage (Prometheus metrics over a couple of weeks), and revisit them — application behaviour changes with every release.
Worked example: from six nodes to three (illustrative)
A team runs 40 pods, each requesting 1 vCPU and 2 GiB. Prometheus shows p95 usage per pod of 0.25 vCPU and 900 MiB. The nodes have 8 vCPU and 32 GiB, of which roughly 7.5 vCPU and 28 GiB is allocatable after system reservations. Requests total 40 vCPU, so the cluster needs six nodes for CPU alone, while actual p95 use is about 10 vCPU.
Resetting requests to 0.35 vCPU and 1.2 GiB per pod (p95 plus headroom) brings the total to 14 vCPU and 48 GiB. The arithmetic says two nodes; keeping a spare for zone spread and rolling updates makes it three. Same pods, same traffic, half the nodes. The caution: memory requests below real peak usage cause OOM kills and evictions, so size memory from a high percentile with a margin, and roll changes out one workload at a time.
In-place resize changes the trade-off
Since Kubernetes 1.35 (December 2025), in-place pod resize is stable: CPU and memory requests and limits can be changed on a running pod, often without restarting the container. The 1.35 announcement also noted that the Vertical Pod Autoscaler's InPlaceOrRecreate mode, which uses it, had graduated to beta, and the Kubernetes VPA documentation now marks the old Auto mode as deprecated. Resize does not work alongside swap or the static CPU and memory managers. For stateful or slow-starting workloads, it makes right-sizing far less disruptive than evict-and-recreate.
Autoscale at every layer
- Horizontal Pod Autoscaler (HPA) scales replicas with CPU, memory or custom metrics such as queue depth or requests per second.
- Vertical Pod Autoscaler (VPA) recommends — or applies — better requests over time. Don't let HPA and VPA both act on CPU or memory for the same workload; running VPA in recommendation mode alongside HPA is a safe way to get sizing data.
- Cluster Autoscaler or Karpenter adds and removes nodes as pending pods appear and disappear. Karpenter can also choose instance types per workload and consolidate nodes.
- Event-driven autoscaling (KEDA) lets queue workers and batch jobs scale to zero when there's nothing to do. KEDA is a CNCF graduated project.
Together they ensure you run the smallest footprint that still meets demand. They depend on good requests — autoscalers make decisions based on them.
Karpenter (its documentation is at v1.15 as of October 2026) provisions nodes from NodePools and offers three consolidation policies: WhenEmpty, WhenEmptyOrUnderutilized, and a newer Balanced option that skips consolidations whose savings do not justify the disruption. The managed options increasingly build on it. EKS Auto Mode relies on Karpenter for autoscaling, and AKS node auto-provisioning is based on Karpenter and its Azure provider. On GKE Autopilot, general-purpose pods are billed on their resource requests, so inflated requests show up on the invoice directly.
| Tool | What it scales | Use it for | Watch out for |
|---|---|---|---|
| HPA | Pod replicas | Stateless services on CPU, memory or custom metrics | Flapping without stabilisation windows; useless with wrong requests |
| VPA | Pod requests and limits | Sizing data in Off mode; steady workloads with InPlaceOrRecreate | Acting on the same metric HPA scales on |
| KEDA | Replicas, down to zero | Queue consumers, event-driven and scheduled jobs | Cold-start latency when scaling up from zero |
| Cluster Autoscaler | Nodes within fixed node groups | Clusters with a few well-understood node types | Cannot pick a better instance type for a new workload |
| Karpenter | Individual nodes from NodePools | Mixed instance types, spot capacity, consolidation | Node churn without disruption budgets and PDBs |
| Managed modes (EKS Auto Mode, AKS node auto-provisioning, GKE Autopilot) | Nodes, run by the provider | Small platform teams who want fewer moving parts | Less control; pricing differs, and EKS Auto Mode adds a management fee on top of EC2 |
Use spot capacity for the right workloads
Spot and preemptible capacity is heavily discounted — AWS advertises up to 90% off On-Demand prices for Spot Instances, and Google advertises up to 91% for many Spot VM types — in exchange for the provider being able to reclaim it at short notice. Stateless services with several replicas, CI runners and batch jobs are ideal candidates. Keep critical stateful services on on-demand or committed capacity, spread spot across several instance types and zones, and use PodDisruptionBudgets and graceful shutdown handling so interruptions are routine rather than incidents.
The notice is short. AWS issues a two-minute interruption warning, and Google's default shutdown window for Spot VMs is shorter still. Karpenter and EKS Auto Mode can watch for these notices and drain the node ahead of time, but your pods still need to stop cleanly well inside the window.
| Workload | Capacity type | Why |
|---|---|---|
| Stateless web and API services with three or more replicas | Committed baseline, spot for the variable layer | Losing one replica is routine if PDBs and readiness probes are right |
| Databases, message brokers, StatefulSets | On-demand or committed | Interruptions trigger failovers, rebalancing and data risk |
| CI runners, batch jobs, training with checkpoints | Spot | Work can restart from the last step |
| Queue workers | Spot, with KEDA scaling to zero | Messages wait in the queue during an interruption |
| Cluster add-ons (DNS, ingress, the autoscaler itself) | On-demand | If they go, the whole cluster suffers |
Commitments still apply underneath. On AWS, Compute and EC2 Instance Savings Plans cover the EC2 nodes in an EKS cluster (not the cluster fee), so cover the steady node baseline with a commitment and let spot absorb the rest. Our FinOps playbook explains how to size that baseline.
Bin-pack, don't scatter
Efficient scheduling packs pods tightly onto fewer nodes. Consolidation (Karpenter's consolidation or the Cluster Autoscaler's scale-down) drains and removes underutilised nodes so you're not paying for half-empty machines. Check the things that block consolidation: pods without controllers, restrictive PodDisruptionBudgets, local storage and overly strict anti-affinity rules.
With Karpenter, a pod annotated karpenter.sh/do-not-disrupt: "true" pins its node until the pod leaves, which is right for a long batch job and wrong as a default. NodePool disruption budgets limit how many nodes can be disrupted at once, so consolidation does not compete with your busiest hour. Two more places to look:
- DaemonSets. An agent that requests half a vCPU on every node costs as much as a small service. Review what runs everywhere and what it requests.
- Node size. Fewer, larger nodes waste less on per-node overhead, but each failure or drain moves more pods. Mid-sized nodes across several instance types are a sensible default.
Clean up what nobody owns
Idle namespaces from old feature branches, orphaned persistent volumes, forgotten load balancers created by Service objects, and log or metrics retention set to "forever" all add up. Give preview environments a time-to-live and delete them automatically.
- Create preview namespaces from your CI/CD pipeline with an expiry label, and have a scheduled job delete anything past it.
- Check the
reclaimPolicyon each StorageClass.Retainkeeps the disk after the claim is deleted, which is right for databases and expensive everywhere else. - Route HTTP services through one shared ingress or Gateway instead of a cloud load balancer per service.
- Set retention per log stream. Debug logs from staging rarely need to outlive a sprint.
- Apply
ResourceQuotaandLimitRangeper namespace so a new team cannot request a node's worth of CPU by accident.
Make cost visible per team
Namespace- and label-level cost allocation (with tools such as OpenCost or Kubecost) shows each team what its workloads actually cost, including the idle share of the nodes they reserve. Visibility changes behaviour faster than any policy — engineers optimise what they can see. Pair it with cloud-level reporting in CloudMonitor, which brings AWS, GCP and Azure cost and inventory into one view, so cluster costs line up with the rest of the bill, and read our broader FinOps playbook for commitments and storage tiering.
OpenCost is a CNCF incubating project that allocates cluster and cloud costs down to the container. Kubecost, the commercial product from the team that created OpenCost, has been part of IBM since an acquisition announced on 17 September 2024. For most teams that already run Prometheus, OpenCost is the place to start. Move to a commercial tool when you need features or support it lacks, not before.
When Kubernetes is the expensive choice
Sometimes the cheapest cluster is no cluster. A team with three to five services, steady traffic and no platform engineer often pays more in people-time for upgrades, add-ons and on-call than it saves on compute. Managed container services such as Cloud Run, ECS on Fargate or Azure Container Apps, or plain VMs running Docker Compose, can be the better answer until the service count and team size justify a platform. Kubernetes earns its keep when you have many services, several teams, mixed workloads and someone who owns the cluster. If you are unsure which side of that line you are on, our Kubernetes consulting work starts with exactly that question.
Common Kubernetes cost mistakes
- Copy-pasted requests. Every deployment asks for 1 vCPU and 2 GiB because the first one did.
- Autoscalers on top of bad requests. HPA and Karpenter faithfully scale the wrong numbers.
- HPA and VPA on the same metric. They fight, and replica counts and sizes oscillate.
- Spot without diversity. One instance type in one zone means one reclaim event takes out everything.
- PDBs that allow zero disruptions. Nodes can never be drained, so consolidation and upgrades stall.
- Skipping upgrades. Old versions move to paid extended support and miss autoscaling features such as in-place resize.
- One cluster per team or per environment by default. Each cluster carries its own control plane, add-ons and idle headroom.
A 30-day Kubernetes cost plan
- Week 1, measure. Install OpenCost or enable your provider's cost allocation, and export requests against p95 usage for every namespace.
- Week 2, fix requests. Take the ten most over-requested workloads, run VPA in
Offmode for recommendations, and roll new requests out one workload at a time. - Week 3, tune capacity. Turn on consolidation, review PDBs and anti-affinity rules, and add a spot NodePool for stateless services and CI runners.
- Week 4, make it stick. Add TTLs to preview environments, quotas per namespace and a monthly cost report per team, and schedule upgrades so no cluster drifts into extended support.
Kubernetes efficiency isn't a one-off clean-up; it's a set of defaults, autoscalers and dashboards that keep the cluster honest as it grows. Our DevOps & automation and platform engineering teams build these defaults into golden-path templates, our SRE & observability practice makes sure cost savings never come at the expense of your SLOs, and Kubernetes consulting covers cluster reviews and upgrades. The first consultation is free.
Kubernetes cost FAQ
Why is our Kubernetes bill higher than expected?
Usually because pods request more CPU and memory than they use, so nodes fill with reservations rather than work. Nodes that autoscalers cannot remove, a load balancer per service, cross-zone traffic, log ingestion and clusters left on paid extended support are the other common causes.
Should we set CPU limits in Kubernetes?
Set CPU requests on everything. CPU limits throttle a container even when the node has spare CPU, so many teams leave them off latency-sensitive services and rely on requests and namespace quotas instead. Memory is different: set requests close to real usage and set a memory limit, because a runaway process without one can push the whole node into memory pressure.
Karpenter or Cluster Autoscaler: which should we use?
Karpenter picks instance types per workload and consolidates nodes, which suits mixed and spot-heavy clusters, and it underpins EKS Auto Mode and AKS node auto-provisioning. Cluster Autoscaler works with fixed node groups and is simpler to reason about. Either performs badly if pod requests are wrong.
Is it safe to run production Kubernetes workloads on spot instances?
For stateless services with several replicas spread across instance types and zones, yes, provided PodDisruptionBudgets and graceful shutdown are in place. AWS gives a two-minute interruption notice. Keep databases, message brokers and cluster add-ons on on-demand or committed capacity.
OpenCost or Kubecost?
OpenCost is the open-source CNCF project for allocating cluster cost by namespace, label and pod, and it is enough for many teams that already run Prometheus. Kubecost, owned by IBM since 2024, is the commercial product with paid tiers and support. Start with OpenCost and move only when you need something it lacks.
Which Kubernetes versions are supported in October 2026?
Upstream Kubernetes supports 1.37, 1.36 and 1.35, and 1.35 reaches end of life on 28 February 2027. Managed services set their own dates. On EKS, a version past its 14 months of standard support moves to extended support at six times the hourly cluster fee.
Want help putting this into practice?
Talk to a senior engineer about your specific situation — no sales script.






Compliance-first delivery