7 Tools for Right Sizing Kubernetes Workloads
Find tools for Kubernetes resource sizing that recommend requests and limits so workloads get enough CPU and memory without wasting cluster capacity.
On this page
Key takeaways
- Requests and limits should reflect real usage, not guesses.
- Throttling and evictions often point to wrong values.
- Recommendations need history, so let tools collect first.
- Enforcement keeps new workloads from repeating mistakes.
Why right sizing workloads matters
Kubernetes asks each pod to declare how much CPU and memory it needs. When those numbers are too high, the cluster wastes capacity and other workloads wait. When they are too low, pods get throttled or killed. Right sizing is the work of finding the middle.
Getting the numbers right is hard by hand, because usage changes over time and across environments. The seven tools below collect real usage data, recommend better values, or enforce the limits a team has chosen. Together they help a cluster stay full without being overcommitted.
Quick comparison
| Tool | Best for | Starting price | Free plan |
|---|---|---|---|
| Goldilocks | usage based resource recommendations | Not included | Not included |
| kube-state-metrics | cluster object metrics | Not included | Not included |
| Prometheus | storing usage history | Not included | Not included |
| Grafana | visualizing request and usage gaps | Not included | Not included |
| Vertical Pod Autoscaler | automatic request adjustments | Not included | Not included |
| k9s | terminal cluster navigation | Not included | Not included |
| cAdvisor | per container usage data | Not included | Not included |
The best tools for right sizing Kubernetes workloads
1. Goldilocks
- Official site: https://github.com/FairwindsOps/goldilocks
- Best for: usage based resource recommendations
- Starting price: Not included
- Free plan: Not included
- Pros: automatic recommendations; easy start
- Cons: recommendations only; needs a metrics store
Goldilocks is an open source tool that watches a Kubernetes cluster, reads its resource usage, and produces recommended requests and limits for each workload. It uses the Vertical Pod Autoscaler recommender under the hood and shows the results in a dashboard or as annotations.
Teams use Goldilocks to turn real usage into suggested values without doing the math by hand. It is a fast way to find pods that are over or under provisioned. Because it only recommends, teams still decide what to apply and when.
2. kube-state-metrics
- Official site: https://github.com/kubernetes/kube-state-metrics
- Best for: cluster object metrics
- Starting price: Not included
- Free plan: Not included
- Pros: rich object state; Prometheus native
- Cons: needs Prometheus; metrics only
kube-state-metrics is a service that reads the state of Kubernetes objects and exposes it as Prometheus metrics. It reports each pod's requested and limited CPU and memory, along with phase and owner information, so teams can query how resources are assigned across the cluster.
For right sizing, kube-state-metrics provides the declared side of the picture, while tools such as cAdvisor provide the used side. Joining the two shows the gap between what a pod asks for and what it actually consumes. That gap is exactly what right sizing closes.
3. Prometheus
- Official site: https://prometheus.io/
- Best for: storing usage history
- Starting price: Not included
- Free plan: Not included
- Pros: long history; flexible queries
- Cons: storage to manage; learning curve
Prometheus stores the metrics that right sizing decisions are built on. It keeps time series for CPU and memory usage, requested values, and cluster capacity, and its PromQL language lets teams compute averages, peaks, and headroom per workload.
Teams rely on Prometheus as the source of truth for usage history. A recommendation is only as good as the data behind it, so a few weeks of stored metrics make the numbers far more reliable. Prometheus also powers alerts when a workload runs close to its limit.
4. Grafana
- Official site: https://grafana.com/
- Best for: visualizing request and usage gaps
- Starting price: Not included
- Free plan: Not included
- Pros: clear dashboards; many sources
- Cons: dashboards to build; setup time
Grafana turns the metrics from Prometheus into dashboards that show, for each workload, what was requested and what was actually used. Side by side panels make over and under provisioning obvious at a glance.
Teams use Grafana to review right sizing candidates before changing anything. A dashboard can list the biggest wastes and the most throttled pods, which helps prioritize. It also gives a shared view so the whole team agrees on what to adjust.
5. Vertical Pod Autoscaler
- Official site: https://github.com/kubernetes/autoscaler
- Best for: automatic request adjustments
- Starting price: Not included
- Free plan: Not included
- Pros: adjusts values automatically; official project
- Cons: works within pods; can restart workloads
The Vertical Pod Autoscaler, or VPA, is a Kubernetes project that recommends and optionally applies CPU and memory requests based on usage history. It can run in recommend only mode or update workloads automatically when their needs change.
Teams use VPA when they want the cluster to keep requests in line without manual edits. Its recommender is the same engine behind Goldilocks, and it can be limited to specific namespaces. Automatic updates can cause pod restarts, so many teams start with recommendations only.
6. k9s
- Official site: https://k9scli.io/
- Best for: terminal cluster navigation
- Starting price: Not included
- Free plan: Not included
- Pros: fast terminal interface; quick inspection
- Cons: keyboard driven; terminal only
k9s is a terminal based interface for navigating a Kubernetes cluster. It shows pods, deployments, and their requested and actual CPU and memory in a compact view, which makes it quick to spot workloads that are out of line.
Teams use k9s during right sizing reviews to move quickly between workloads and check values without a web dashboard. It is a diagnostic aid rather than a source of recommendations, but its speed makes manual review far less tedious.
7. cAdvisor
- Official site: https://github.com/google/cadvisor
- Best for: per container usage data
- Starting price: Not included
- Free plan: Not included
- Pros: real usage per pod; lightweight
- Cons: no recommendations; needs a store
cAdvisor collects CPU and memory usage for each running container, which is the used side of the right sizing equation. Kubernetes surfaces this data through its metrics system, and Prometheus can scrape it for history.
Teams use cAdvisor data to compare what each container actually consumes against what its pod requested. When usage sits far below the request, the workload is over provisioned, and when it sits near the limit, it needs more. That comparison drives every right sizing decision.
How we chose
We looked for tools that cover both sides of right sizing: the values a workload declares and the values it actually uses. Each tool must work in a standard Kubernetes cluster and fit with Prometheus, which most teams already run.
We favored tools that recommend from history rather than one time snapshots, since a single sample can mislead. The list mixes recommendation, visualization, and enforcement so teams can choose how automated they want the process to be.
FAQ
What are Kubernetes requests and limits?
Requests are the CPU and memory a pod is guaranteed, while limits are the ceiling it can use. Requests help the scheduler place pods, and limits stop one workload from taking over a node.
What happens when requests are set too high?
The scheduler reserves more capacity than the workload needs, so the cluster fills up while actual usage stays low. Other workloads may not be scheduled even though the machines have plenty of real headroom.
What happens when limits are set too low?
The workload gets throttled on CPU or killed when it exceeds its memory limit. This shows up as slow responses, restarts, and evictions that are easy to mistake for application bugs.
How much history do recommendations need?
A few weeks of normal traffic is usually enough to capture daily and weekly patterns. The longer the history, the less a single busy day skews the recommendation.
Should I automate resource changes?
It depends on how stable your workloads are. Recommend only mode is the safer start, letting a human review changes. Automatic updates help at scale but can restart pods, so teams often apply them carefully.