kubernetes
Kubernetes Node Sizing Calculator
Calculate the right number and size of Kubernetes worker nodes for your workloads. Supports Hetzner Cloud and Vultr with verified pricing.
Related tool
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Kubernetes Node Sizing Principles
Right-sizing Kubernetes nodes balances cost, reliability, and operational simplicity. Undersizing causes OOM kills and CPU throttling; oversizing wastes money.
Resource Requests vs Limits
Kubernetes uses requests for scheduling (bin packing) and limits for enforcement:
- ›Request: guaranteed minimum — the scheduler uses this to find a node with enough space
- ›Limit: maximum allowed — exceeding CPU limit throttles, exceeding memory limit OOM-kills
Always set both. A pod with no requests can land on an already-saturated node.
Overcommit Strategy
| Resource | Safe Overcommit | Risk |
|---|---|---|
| CPU | 2–3× | Throttling (recoverable) |
| RAM | 1–1.2× | OOM kill (disruptive) |
System Pod Overhead
Every node runs non-negotiable system pods:
- ›
kube-proxy— iptables/ipvs rules - ›
coredns— DNS resolution (2 replicas cluster-wide) - ›
metrics-server— HPA requires this - ›CNI plugin (Flannel/Calico/Cilium) — pod networking
Combined overhead: ~200–500 MB RAM, ~0.1–0.3 vCPU per node.
Cluster Autoscaler
For production, pair static nodes with the Kubernetes Cluster Autoscaler. Set a minimum node count to handle baseline traffic, and let the autoscaler add nodes under load. This is more cost-effective than over-provisioning.
Worked example: K8s Node Sizing
What the calculator returns for its default inputs — change any value in the form above to recalculate.
| Input | Value |
|---|---|
| Cloud Provider | Hetzner Cloud — €/mo |
| Number of Services / Deployments | 10 |
| CPU Request per Service | 250 m |
| RAM Request per Service | 256 MB |
| CPU Overcommit Ratio | 2× — standard overcommit (recommended) |
| RAM Overcommit Ratio | 1.2× — slight overcommit |
| Worker Node Type | cx43 — 8 vCPU / 16 GB (€15.99/mo) — Cost Optimized |
| Result | Value |
|---|---|
| Recommended nodes (cx43) | 2× |
| Worker nodes monthly cost | €31.98/mo |
| Required cluster CPU | 1.4 vCPU |
| Required cluster RAM | 2.4 GB |
| Total cluster CPU capacity | 16 vCPU |
| Total cluster RAM capacity | 32 GB |
| CPU utilization | 9% |
| RAM utilization | 7% |
Key Terms
Full glossary →kubeadm
A tool for bootstrapping Kubernetes clusters. It automates the setup of control plane components and joining worker nodes, following Kubernetes best practices.
etcd
A distributed key-value store used by Kubernetes to store all cluster state and configuration. etcd is the single source of truth for the entire cluster.
cert-manager
A Kubernetes controller for automating TLS certificate management. cert-manager can issue certificates from Let's Encrypt, Vault, or internal CAs, and automatically renews them.
Helm
A package manager for Kubernetes. Helm charts bundle Kubernetes manifests into reusable packages with configurable values, versioned and published to chart repositories.
Frequently Asked Questions
How do I find the right CPU and memory requests for my services?
Run `kubectl top pods --all-namespaces` to see actual CPU/memory usage. Use this as a baseline for requests (set requests = average usage, limits = peak usage). Don't guess — incorrect requests lead to either waste or OOM kills.
Is it better to have fewer large nodes or more small nodes?
Fewer large nodes: simpler to manage, less Kubernetes overhead, but larger blast radius on node failure. More small nodes: better fault tolerance, finer-grained bin packing. A common production pattern is 3–5 medium nodes (cx43/cx53), scaling out via the Cluster Autoscaler.
Why does the calculator add 15% system overhead?
Kubernetes system pods (kube-proxy, CoreDNS, metrics-server, CNI plugin) consume roughly 10–20% of node resources. This overhead is non-negotiable — it's always there. The 15% default is a conservative estimate for a typical cluster.
What is a safe CPU overcommit ratio for production?
2× is the standard production default. CPU is compressible — if pods request more than available, they get throttled, not killed. 3× is fine for development clusters or batch workloads. Never overcommit memory beyond 1.2× in production — OOM kills are disruptive.
Related Tools
K8s Cluster Cost
Calculate the monthly cost of running a self-managed Kubernetes cluster on Hetzner Cloud, Vultr, or DigitalOcean. Choose server types for control planes, workers, and load balancers with HA mode.
Longhorn Storage
Calculate the total storage required for Longhorn distributed block storage, including replica overhead, snapshot retention, and S3 backup sizing on Hetzner Object Storage.
HPA Thresholds
Calculate the right HPA (Horizontal Pod Autoscaler) CPU and memory thresholds for your Kubernetes workloads. Get absolute target values in millicores and MiB.
Hetzner K8s Cost
Calculate the exact monthly cost of a Kubernetes cluster on Hetzner Cloud using verified server pricing — cx23, cx33, cx43, cax21, cax31, ccx23.
k3s Resources
Calculate RAM and CPU requirements for a k3s cluster. k3s has 5–10× lower overhead than full Kubernetes — see exactly how much your server and agent nodes need.
Temporal Resources
Calculate Kubernetes resource requirements for a self-hosted Temporal workflow engine. Size the History, Matching, Frontend, and Worker services plus the PostgreSQL persistence layer.
Related Generators
Related Comparisons
Related Guides
kubernetes
How to Migrate from Docker Compose to Kubernetes: A Practical Guide
A practical, hands-on guide to migrating a real multi-service Docker Compose app to Kubernetes — mapping every concept and translating YAML line by line.
kubernetes
How to Size Kubernetes Nodes: A Practical Framework
A practical framework for choosing Kubernetes node sizes — covering system overhead, DaemonSet tax, workload types, and the tradeoffs between few large vs many small nodes.
kubernetes
Kubernetes Cost Optimization: 12 Ways to Cut Your Cloud Bill
Twelve concrete techniques to reduce Kubernetes infrastructure costs — from right-sizing nodes and enabling HPA, to switching storage backends and choosing the right cloud provider.