Kubernetes Cost Fundamentals
Kubernetes changes how cost appears: the provider bills for nodes, while teams think in pods and namespaces. This lesson explains the building blocks of Kubernetes cost, how requests and limits work, and why a cluster can be busy and wasteful at the same time.
Learning outcomes
After completing this lesson, you will be able to:
- Describe what a cloud provider bills for a Kubernetes cluster.
- Explain requests, limits and allocatable capacity.
- Distinguish over-requested capacity from idle node capacity.
- Describe Kubernetes quality of service classes.
- Identify cluster costs that belong to no single application.
What the provider bills
A Kubernetes cluster runs pods, the smallest deployable units, on nodes, which are virtual machines (or, with some serverless options, capacity billed per pod). The cloud provider bills for the nodes, the persistent volumes, the load balancers and, for managed Kubernetes services, often a fee per cluster for the control plane. It does not bill per pod, namespace or team. The bill therefore shows a cluster's total cost but nothing about which workloads caused it.
This is why Kubernetes needs its own cost allocation: the link between a team and its cost exists only inside the cluster, in the scheduling of pods onto nodes.
Requests and limits
Each container can declare resource settings for CPU and memory. The following terms define them.
- Request
- The amount of CPU and memory the scheduler reserves for the container on a node. The scheduler places a pod only on a node with enough unreserved capacity for all its requests.
- Limit
- The maximum the container may use. A container that exceeds its memory limit is terminated; one that reaches its CPU limit is throttled.
- Allocatable capacity
- The CPU and memory on a node available to pods after the operating system and Kubernetes components are reserved.
Requests are what drive cost. A pod that requests 2 CPUs and 4 GiB of memory blocks that capacity on its node whether it uses it or not, so no other pod can be scheduled into it. When the sum of requests fills a node, the cluster needs another node, even if actual usage on the existing node is low.
Requests and limits
Busy and wasteful at the same time
Consider a node with 16 allocatable CPUs whose pods request 15 CPUs in total but use only 4. From the scheduler's point of view, the node is full; from a utilization point of view, it is 25% busy. The gap between requested and used capacity is over-requesting, and it is the most common source of Kubernetes waste. A second source is idle capacity: node capacity that no pod requests at all, for example because nodes are larger than needed or the autoscaler has not removed an underused node.
Kubernetes waste therefore has two layers: capacity that is reserved but unused (requests above usage), and capacity that is not even reserved (idle node capacity).
The following diagram compares capacity, requests and usage.

Quality of service and the risk of under-requesting
Setting requests too low is risky in the other direction. Pods whose requests are far below their real needs can be placed on crowded nodes, where they compete for CPU and may be evicted under memory pressure. Kubernetes assigns pods a quality of service class: Guaranteed when requests equal limits, Burstable when requests are lower than limits and BestEffort when none are set. Critical services usually use Guaranteed or carefully set Burstable settings; the aim is accurate requests, not minimal ones.
Other cluster costs
Beyond nodes, a cluster incurs costs that do not belong to any single application. The following list describes them.
- Control plane fees for managed Kubernetes services.
- System workloads such as DNS, networking agents, logging and monitoring agents, which run on every node.
- Persistent volumes attached to stateful workloads.
- Load balancers and ingress controllers.
- Data transfer between pods in different zones and to outside services.
Why the cluster keeps growing
A cluster has 30 nodes of 8 vCPUs each. Total CPU requests are 228 vCPUs, but actual CPU usage averages 60 vCPUs and peaks at 90. The cluster autoscaler adds a node every time a new deployment is made. Why?
The 240 vCPUs of capacity are 95% requested (228 / 240), so the scheduler sees the cluster as nearly full and each new deployment needs a new node. Actual usage is only 25% on average and 38% at peak. The problem is over-requesting, not demand. Rightsizing requests closer to observed usage, with headroom, would free capacity and let the autoscaler remove nodes.
A quiet node that never leaves
After traffic fell, one node in a cluster runs a single small pod that requests 0.25 vCPU. The cluster autoscaler does not remove the node. What could prevent it?
The autoscaler removes a node only if its pods can be rescheduled elsewhere. A pod with local storage, a restrictive pod disruption budget, a node selector or affinity rule that matches only that node, or an annotation that marks it as not safe to evict will keep the node alive. The engineer should check these settings; fixing them lets the autoscaler consolidate the pod and remove the node.
Why can a cluster need more nodes even when actual CPU usage is low?
Show answer
The scheduler places pods by their requests, not by actual usage. If requests are much higher than usage, nodes fill up on paper and new pods need new nodes.
Exam Tips
Remember for the exam
- The provider bills nodes, volumes, load balancers and control planes, not pods or namespaces.
- Requests reserve node capacity and drive cost; usage below requests is wasted.
- Kubernetes waste has two layers: over-requested capacity and idle node capacity.
- Aim for accurate requests, not minimal ones; under-requesting harms reliability.