Developer and Text Tools

Kubernetes Requests and Limits: QoS Classes, Node Fit and Cost

How Kubernetes uses CPU and memory requests and limits, how QoS classes are decided, and how to estimate node count and monthly cost per namespace.

Saizul Amin
Saizul Amin3 Nov 2026 · 3 min read
Kubernetes Requests and Limits: QoS Classes, Node Fit and Cost

Resource requests and limits are a few lines in each container spec, yet they decide how many nodes you pay for, which pods are evicted first and why some services feel slow under load. This guide explains the rules and shows how to plan a cluster with the Kubernetes Resource Requests and Limits Calculator.

Requests and limits

A request is what the scheduler reserves for a container. A pod is placed on a node only if the node's unreserved capacity covers the sum of its containers' requests. Actual usage does not matter for placement.

A limit is the most a container may use. CPU above the limit is throttled, which slows the container but keeps it running. Memory above the limit gets the container killed and restarted.

Units are compact and easy to misread. CPU is in cores or millicores, so 250m equals 0.25 of a core. Memory uses binary suffixes such as Mi and Gi or decimal ones such as M and G; 1Gi is about 7 percent larger than 1G. The calculator accepts all of these, outlines invalid values and reports limits that are lower than requests, which the API server rejects.

Quality of service classes

Kubernetes assigns each pod a class from its settings:

  • Guaranteed when every container has CPU and memory limits and requests equal to them. A limit set alone counts, because Kubernetes copies it to the request.
  • BestEffort when no container sets anything.
  • Burstable for everything in between.

When a node runs short of memory, BestEffort pods are evicted first, then Burstable pods using more than their requests. Databases and other stateful services are good candidates for Guaranteed; most web services are fine as Burstable.

Entering workloads

Add each workload with a namespace, replica count and its containers, including sidecars such as proxies or log shippers, which are easy to forget and add up quickly. The calculator shows per-pod and total requests and the QoS badge for each workload. If your manifests already exist, paste them on the import tab and the containers, replicas and resources are read in.

Will it fit

Describe your node type: vCPU, memory, the percentage reserved for the operating system and kubelet, the maximum pods per node, the pods each node already runs for DaemonSets, and the node count. The calculator works out allocatable capacity and packs the pods by placing the largest first on the first node with room. That approximates how the scheduler fills nodes when requests are the constraint.

You see how many nodes are needed, a CPU and memory bar for each, and any pod too large for a single node. If requests use only a small share of memory but most of the CPU, a CPU-heavier node type may be cheaper.

Overcommit

Limits can add up to more than the cluster has, which is normal: not every container peaks at once. The calculator shows total limits as a percentage of allocatable capacity. Memory overcommit is the risky one, because memory cannot be throttled; when several pods spike together the node starts killing containers.

Cost per namespace

Enter the hourly price of a node and the calculator shows the monthly cost of the pool at 730 hours per month. Each namespace is charged by the larger of its CPU and memory share of the cluster. Idle capacity is not spread across teams, which keeps the numbers honest and shows how much headroom you are paying for.

Tuning tips

  • Base requests on observed usage, for example a high percentile over a week, not on guesses.
  • Always set a memory limit; be more cautious with CPU limits on latency-sensitive services.
  • Recheck after each major release, since usage changes with code.

Limits

The estimate considers requests only. Affinity rules, taints, topology spread, disruption budgets, ephemeral storage and real daemon usage also affect scheduling, and providers reserve different amounts per node size. Treat the output as a planning figure and confirm allocatable values with kubectl describe node.

Completely freeNo cost, no sign-up
Files stay privateEverything runs in your browser
Easy in your languageAvailable in many languages