Kubernetes Node Sizing Guide (2026): Allocatable Math, Bin-Packing & EKS vs. Self-Hosted k3s Cost
DEV Community

Kubernetes Node Sizing Guide (2026): Allocatable Math, Bin-Packing & EKS vs. Self-Hosted k3s Cost

Sizing a Kubernetes cluster looks deceptively simple on a whiteboard: add up your pod CPU and memory requests, divide by your VM instance size, and buy that many worker nodes. In production, that naive calculation almost always triggers Pending pods during rolling deployments, sudden node evictions under traffic spikes, or a 35% monthly cloud bill shock.

Want to skip the spreadsheet? Plug your pod counts, CPU/RAM requests, and HA failover buffer directly into our free Kubernetes Node Sizing & Cluster Cost Calculator to get exact worker node counts, kubelet reservation flags, and a 3-way monthly cost estimate.

Capacity vs. Allocatable: Where 15-22% of Every Node Disappears

The Kubernetes scheduler never schedules pods against raw VM capacity. It schedules strictly against Node.status.allocatable - what remains after subtracting operating system daemons, container runtime overhead, and kubelet eviction thresholds:

Allocatable = Node Capacity - kube-reserved - system-reserved - eviction-threshold

On top of kubelet reservations, every worker node runs cluster-wide DaemonSets - your CNI plugin (Cilium, Calico, or AWS VPC CNI), kube-proxy, log shippers (Fluent Bit / Promtail), and monitoring agents (node_exporter). Together, those typically consume another 200-350m CPU and 400-800 MiB RAM per node before a single application pod lands.

Few Large Nodes vs. Many Small Nodes: The Three Trade-Offs

Choosing between twelve 4 vCPU / 16 GiB nodes and three 16 vCPU / 64 GiB nodes is not just a pricing decision - it directly shapes cluster reliability and packing efficiency:

  • System & DaemonSet Tax: Small nodes (e.g., 2 vCPU / 4 GiB) lose up to 30% of their RAM to fixed per-node overhead. Larger nodes (8 vCPU / 32 GiB or 16 vCPU / 64 GiB) amortize DaemonSets down to <5%.
  • Blast Radius & N+1 Failover Cost: On a 3-node cluster, keeping N+1 failover headroom means paying for 33% idle capacity. On a 10-node cluster, N+1 costs only 10%. Losing one huge node also forces far more pods to reschedule simultaneously.
  • CNI IP / Max-Pods Ceiling: On AWS EKS with the default VPC CNI, an m6i.large (2 vCPU / 8 GiB) caps out at just 29 pods (or 58 on m6i.xlarge). Microservice clusters with tiny 128 MiB pods frequently hit the max-pods ceiling long before exhausting CPU or RAM.

Don't Forget Target Packing Utilization & Rolling Updates

Even after computing Allocatable - DaemonSets, never size your baseline cluster for 100% packing. Bin-packing fragmentation - plus standard maxSurge: 25% rolling deployments - requires leaving 15-25% scheduling headroom.

Targeting 70-80% peak request utilization gives Cluster Autoscaler or Karpenter enough runway to spin up replacement nodes before pods stall in Pending (see our Kubernetes Pod Pending troubleshooting guide if you are hitting scheduling walls today).

Production kubelet Reservation Baseline

If you manage your own nodes via kubeadm or k3s, always configure explicit reservation flags so runaway containers trigger pod eviction rather than freezing SSH and crashing the Linux OOM killer on kubelet itself. For an 8 vCPU / 32 GiB node, a battle-tested starting point is:

kubelet --kube-reserved=cpu=90m,memory=3645Mi --system-reserved=cpu=200m,memory=1024Mi --eviction-hard=memory.available<100Mi

Originally published at OpsHubs. Found it useful? Buy us a coffee ☕.

Read on DEV Community ↗ ← Back to News

Comments

No comments yet. Start the discussion.