Kubernetes Resource Calculator
Calculate total CPU and memory requests/limits across multiple containers or replicas - understand millicores and Mi/Gi units.
Enter CPU and memory requests/limits per container and a replica count - this tool calculates the aggregate resource requirements.
CPU is measured in millicores (1000m = 1 core). Memory uses binary units: Mi (mebibytes) and Gi (gibibytes, 1024 Mi).
This calculates the numbers you enter - it does not know your actual cluster's available capacity. Check `kubectl describe nodes` for real, current cluster resource availability.
Understanding Kubernetes Resource Units
CPU is measured in cores, where 1000m (millicores) equals 1 full CPU core - so 500m is half a core. Memory uses binary units: Mi (mebibytes, 1024×1024 bytes) and Gi (gibibytes, 1024 Mi) - distinct from the decimal M/G units sometimes used elsewhere.
Why Use This Tool?
When a Deployment scales to several replicas, the actual total resource footprint is easy to underestimate if you're only thinking about a single Pod's requests/limits. This tool multiplies out the real aggregate demand.
How to Use It
- Enter the CPU and memory request/limit for one container.
- Enter how many replicas will run.
- Review the calculated total CPU (in millicores and cores) and total memory (in Mi and Gi) across all replicas.
Limitations
This is arithmetic on the numbers you provide - it has no knowledge of your actual cluster's node capacity, other workloads already scheduled, or Kubernetes scheduling behavior. Use kubectl describe nodes or your cluster dashboard for real, current capacity.