AWS Kubernetes and Container Architecture: The Cost of Overprovisioning
Explain EKS control planes, pod scheduling, worker capacity, autoscaling, storage and load balancers with a practical node-sizing calculation.
1. The scenario: containers fit poorly on an expensive cluster
A software team moves twenty application replicas to EKS. Each container usually consumes 0.2 vCPU but requests 1 vCPU. The cluster grows to fit the requests, while the CPU dashboard remains mostly idle. Another team creates its own cluster to avoid coordinating access, repeating the baseline cost.
Containers improve packaging and deployment consistency. Better utilization requires accurate resource settings, compatible workloads and a scheduler that can actually consolidate nodes. It does not follow automatically from using Kubernetes.
Worked prices are illustrative USD assumptions using 730 hours/month. The documented EKS support-tier rates are identified separately; price the selected region, compute mode and contract before purchasing.
2. How it works: requests drive placement
The scheduler places ordinary workloads against resource requests and node allocatable capacity. CPU limits control throttling; memory-limit breaches can cause an OOM termination. A request is not a measurement of current consumption. Sidecars, init containers, platform agents and reserved node resources also affect usable capacity.
The HPA changes replica count according to configured signals. A node autoscaler such as Karpenter or Cluster Autoscaler provisions or consolidates compatible node capacity. More replicas without available node capacity can remain pending; more nodes with oversized requests can simply increase waste.
EKS compute guidance recommends workload rightsizing before optimizing unused capacity and purchase models. Use a representative period including bursts, deployments and failure, not the lowest quiet-hour sample.
3. Cost components: a cluster has more than worker nodes
| Layer | Billable resources or constraints |
|---|---|
| Control plane | Per-cluster support tier; optional capabilities or control-plane features |
| Workers | EC2, Fargate or selected managed mode and associated fees |
| Node overhead | OS reservations, DaemonSets, security agents and sidecars |
| Persistence | EBS/EFS capacity, performance and snapshots |
| Ingress/egress | Load balancers, public IPv4, NAT, endpoints and transfer |
| Operations | Container telemetry, image registry, builds and upgrades |
The EKS pricing page lists $0.10/cluster-hour for standard version support and $0.60 for extended support. At 730 hours these are $73 and $438, a $365 difference per cluster before workers. EKS Auto Mode and other optional offerings have additional meters; do not treat the cluster-hour fee as their complete price.
4. Where things go wrong
Oversized CPU requests reserve scheduler space even when actual usage is low. Undersized requests can cause contention; aggressive memory reduction can turn an apparent saving into OOM failures and retries. Tune per container, considering CPU burst behavior and working set.
Scale-down can be blocked by disruption budgets, strict anti-affinity, zonal volumes, local state or incompatible node shapes. A PodDisruptionBudget is a voluntary disruption control, not spare capacity and not a guarantee against involuntary zone loss.
A one-service-one-load-balancer pattern can create a large fixed ingress floor. Consolidated ingress may help when certificate, security and blast-radius requirements allow it. A Kubernetes Service does not always create a new AWS load balancer: the type and controller configuration matter.
PersistentVolumes can survive application deletion under a retain policy. Node shutdown does not delete every disk, snapshot, load balancer or log group. Resource lifecycle needs an owner beyond the Deployment manifest.
5. Real-world example: scheduler math before discounts
Assume each candidate node offers 7 allocatable vCPUs and enough memory after system reservations and DaemonSets. Twenty application replicas request 1 vCPU each. The CPU-only packing lower bound is ceiling(20 ÷ 7) = 3 nodes.
After profiling and load testing, each requests 0.35 vCPU, a 7-vCPU aggregate. The CPU-only lower bound becomes 1 node. This is a packing calculation, not a recommendation to run production on one node.
Suppose the service’s approved resilience and rollout design requires a three-node floor. Reducing requests alone then saves no nodes; it makes room for other compatible workloads. In another workload, assume a nine-node deployment can safely consolidate to six nodes after memory, zone, pod/IP and disruption checks.
| Item | Before | Candidate |
|---|---|---|
| Workers at assumed $0.20/hour | 9 × 730 × $0.20 = $1,314 | 6 × 730 × $0.20 = $876 |
| One standard-support control plane | $73 | $73 |
| Unchanged disks/network/telemetry | Assumed $200 | Assumed $200 |
| Monthly subtotal | $1,587 | $1,149 |
The candidate saves $438/month only when nodes are actually removed and no replacement charge offsets it. Buying a lower rate while retaining all nine nodes improves pricing but does not repair packing.
6. Alternatives and their tradeoffs
Consolidate clusters when teams can share policy and isolation controls. Keep separate clusters for justified trust, compliance, upgrade or failure boundaries. Namespace separation alone is not equivalent to every cluster-level boundary.
ECS on EC2 can offer simpler container scheduling for an AWS-focused team; standard ECS orchestration has no separate control-plane fee. Fargate trades node management for task-based resource billing and supported task shapes. A small managed application or VM may fit a simple workload better.
Spot capacity can suit interruptible workers with checkpointing, diverse capacity options and safe retries. Keep essential system services and non-interruptible requirements on an appropriate stable base. Commitments should follow the stable, rightsized footprint.
7. Practical recommendations
Inventory CPU, memory, ephemeral storage, pod count, network/IP constraints and per-zone placement. Compare requested versus used capacity, but preserve latency and failure headroom.
Run VPA recommendations or another rightsizing analysis without blindly applying changes. Test HPA targets after changing requests, because utilization-based CPU targets use requests as the denominator. Keep deployment surge and eviction behavior in the test.
Review cluster support dates and abandoned volumes regularly. Report both cost per node-hour and cost per successful business operation; higher node utilization can still be a poor outcome if request latency deteriorates.
8. CloudVectra perspective: connect the platform bill to consumers
CloudVectra cost insights supports a review of EKS, compute, storage and networking together. Cost Centers helps allocate shared infrastructure using a documented policy.
Keep a transparent base-platform allocation and a workload allocation informed by scheduling evidence. Kubernetes telemetry establishes requests, pressure and consolidation blockers; cost reporting shows whether a change actually removed billed infrastructure.
Continue the architecture series
- Previous: AWS Data Architecture Mistakes: Why Storing and Moving Data Gets Expensive
- Next: AWS Observability Architecture Mistakes: When Monitoring Becomes a Major Expense
- Compare the Azure architecture
- Browse Cloud Architecture & Governance