5 of 5 free conversions left. Sign in for unlimited use.
Kubernetes Resource Calculator
Paste Deployments, StatefulSets, DaemonSets, Jobs, CronJobs or Pods (and optionally a HorizontalPodAutoscaler) to add up the CPU and memory they request, or leave the YAML empty and type the numbers for one pod. It uses the requests and limits written in the manifests, not live usage, and the node count is a lower bound.
About the Kubernetes Resource Calculator
The Kubernetes Resource Calculator adds up the CPU and memory your manifests ask for. Paste Deployments, StatefulSets, DaemonSets, Jobs, CronJobs or Pods, or just enter replicas and per-pod values, and see the requests and limits of one pod, the totals for all replicas, each workload's QoS class, the peak during a rolling update, the size at the HorizontalPodAutoscaler's maximum and, if you give a node size, the minimum number of nodes.
How to use the Kubernetes Resource Calculator
- Paste your Kubernetes YAML, or enter the replicas, CPU and memory per pod.
- Optionally enter the allocatable CPU and memory of one node.
- Click Calculate and read the table, the totals and the notes.
Frequently asked questions
How does it treat init containers and sidecars?
Like the scheduler: a pod's request is the larger of the sum of its regular containers (plus sidecar init containers) and its biggest init container. A container that has a limit but no request is given the limit as its request.
Is the node count exact?
No, it is a lower bound. It divides total requests by what one node offers and does not model bin packing, anti-affinity, pod overhead or system pods, so plan some headroom. It also uses the requests written in the manifests, not real usage.
Are my data stored when I use the Kubernetes Resource Calculator?
The text you submit is processed in memory to produce the result and is not saved. Like any web server, Code Converter logs basic visit data (page, IP address and browser) but never the content you paste.
Is the Kubernetes Resource Calculator free, and can I call it from a script?
It is free and only needs a free account (log in first). The same tool is available as a REST endpoint at POST /api/k8s-resource-calculator; see the API documentation for the fields and examples.