CodeConverter

5 of 5 free conversions left. Sign in for unlimited use.

Manual input (used only when the YAML box is empty)

Node size (optional, for a minimum node count)

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

  1. Paste your Kubernetes YAML, or enter the replicas, CPU and memory per pod.
  2. Optionally enter the allocatable CPU and memory of one node.
  3. 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.