Kubernetes Cost Tools: Kubecost vs OpenCost vs Cast AI
Your cloud bill says $80k. Your cluster says nothing about which team burned it. Here's how OpenCost, Kubecost, and Cast AI actually split that number.
Key takeaways
- Start with OpenCost, the free CNCF project that allocates Kubernetes cost to namespaces, workloads and labels.
- Add IBM Kubecost when you need multi-cluster dashboards, alerts and recommendations; its free Foundations tier covers up to 250 cores.
- Choose Cast AI only when you want a controller to rightsize, bin-pack and run spot for you.
On this page
Use OpenCost first: it is free, CNCF-incubating, and answers "which namespace spent what." Add IBM Kubecost when you need multi-cluster dashboards, budget alerts and savings recommendations. Pick Cast AI only when you want a controller to act on the cluster itself, rightsizing, bin-packing and running spot for you. Two of the three report; one changes things.
Verified against
OpenCost v1.121.3 and its Helm chart, IBM Kubecost Foundations and Enterprise editions, Cast AI's quote-based pricing page, and the Kubernetes VerticalPodAutoscaler docs (autoscaling.k8s.io/v1). Checked October 2026.
Why the bill tells you nothing
The cloud bill is one number per account. The cluster is fifty teams sharing forty nodes. Kubernetes cost is opaque for two structural reasons. First, nodes are shared: one instance runs pods from a dozen namespaces, and the provider bills only the instance. Second, you pay for what you reserve, not what you use. A pod that requests 4 CPU and 8 GiB but runs at 300m and 1 GiB is billed as if it holds the whole reservation, because the scheduler carves that capacity out of the node and hands it to nobody else.
So there are two jobs. Allocation attributes the bill back to namespaces, deployments, labels and teams; it is a reporting problem. Optimization changes the cluster so the bill drops; it is a control-plane problem, and scarier, because it touches running workloads. Keep them separate when you read vendor marketing.
The three tools, side by side
| Tool | Type | Primary job | Changes the cluster | Free option | Pricing model (Oct 2026) |
|---|---|---|---|---|---|
| OpenCost | CNCF incubating OSS | Allocation, basic UI | No | Fully free | Free |
| IBM Kubecost | Commercial, OSS lineage | Allocation, alerts, recommendations | No (advice only) | Foundations: up to 250 cores, 15-day retention | Enterprise via IBM, no public list price |
| Cast AI | Commercial SaaS + in-cluster agent | Automation: rightsizing, bin-packing, spot | Yes | Not listed | Custom quote only |
OpenCost: the allocation baseline
OpenCost was created by Kubecost, accepted into the CNCF in June 2022, and moved to incubating in October 2024. It reads pod usage from Prometheus, applies public cloud pricing or your own rates, and produces cost per namespace, controller, pod and label, plus idle cost (node capacity nobody requested). It needs Prometheus; point the chart at the one you already run:
helm repo add opencost-charts https://opencost.github.io/opencost-helm-chart
helm repo update
helm install opencost opencost-charts/opencost --namespace opencost --create-namespace -f values.yaml
opencost:
prometheus:
internal:
namespaceName: monitoring
serviceName: prometheus-kube-prometheus-prometheus
port: 9090
Then query it. Port 9090 serves the UI, 9003 the API:
kubectl port-forward --namespace opencost service/opencost 9003 9090
curl -s "http://localhost:9003/allocation/compute?window=7d&aggregate=namespace" | jq '.data[0] | map_values(.totalCost)'
What you get: a straight answer to "what did team X's namespace cost last week," and Prometheus metrics you can chart in Grafana. What you don't get: alerting, savings advice or automation. It measures; it doesn't act. For a platform team that already lives in Prometheus and wants trustworthy chargeback numbers, OpenCost alone is often enough.
Kubecost: OpenCost with the product built around it
Kubecost is now IBM Kubecost, sold through Apptio alongside Cloudability. You pay for what OpenCost leaves out: a polished dashboard, budget alerts, savings recommendations (oversized requests, abandoned workloads, underused nodes), a unified multi-cluster view and RBAC. As of October 2026 the free Foundations tier allows unlimited clusters up to 250 cores with 15-day metric retention and community support. Enterprise Self-hosted removes those limits and is bought through the IBM store; Enterprise Cloud is the SaaS version. No dollar figures are published.
Read the fine print on recommendations: Kubecost tells you "this deployment should request 500m instead of 2 CPU." It doesn't change the deployment. You still open the PR. That is a feature if you want humans in the loop and friction if you have ten thousand workloads.
Cast AI: the one that actually acts
Cast AI runs its own autoscaler and node provisioner that rewrite the cluster continuously: rightsizing requests, bin-packing pods onto fewer nodes, and moving fault-tolerant capacity to spot with fallback when spot is reclaimed. AWS lists spot at up to 90% off on-demand, which is where most of the headline savings come from. You install the agent, grant it permission to manage nodes, and it drives the fleet toward the cheapest layout that fits.
The cost is trust and lock-in: a third-party controller provisions and drains nodes in production. Pricing is quote-only (the pricing page asks for cluster count, GPU use and which managed Kubernetes you run), so model it against your bill before signing. When you are not ready to hand over node lifecycle, it is a hard sell to your security review.
The levers underneath, and the free one you can pull today
Every tool surfaces the same four levers: right-size requests, bin-pack onto fewer fuller nodes, move tolerant work to spot, and autoscale so idle capacity disappears overnight. Native cloud cost-allocation tags split node-level cost by cluster or environment for free, but they never see inside a node.
You can get rightsizing advice without buying anything. Install the VPA add-on (it's a CRD, not built in) and run it in Off mode, which stores recommendations in .status without touching pods:
apiVersion: autoscaling.k8s.io/v1
kind: VerticalPodAutoscaler
metadata:
name: api-vpa
spec:
targetRef:
apiVersion: apps/v1
kind: Deployment
name: api
updatePolicy:
updateMode: "Off"
kubectl apply -f vpa-api.yaml
kubectl get vpa api-vpa -o jsonpath='{.status.recommendation.containerRecommendations}'
To sanity-check the numbers before you change requests, the Kubernetes resource calculator converts CPU and memory units for you.
Failure modes and the errors they produce
no matches for kind "VerticalPodAutoscaler" in version "autoscaling.k8s.io/v1": the VPA CRDs aren't installed. Install the add-on from the kubernetes/autoscaler repo first.error: Metrics API not availablefromkubectl top: metrics-server is missing. Usage-based advice is guesswork until it is there.- OpenCost shows zero or flat costs: it can't reach Prometheus. Check the
serviceNameandnamespaceNameinvalues.yaml. OOMKilled(exit code 137) after a rightsizing PR: you cut memory to the average, not the peak. Size memory to p95 or p99 and leave limits headroom.- Pods evicted with
The node was low on resource: memory: requests are now too low for real usage, so the kubelet evicts under pressure. Fixing evicted pods walks through it.
Where this breaks
Allocation is only as good as your labels; unlabelled workloads land in a bucket nobody owns. Public list prices overstate cost if you have savings plans or committed-use discounts, so feed in custom pricing or billing data. Automation tools assume stateless, interruption-tolerant workloads; stateful sets, licensed software pinned to nodes and GPU jobs with long checkpoints need exclusions. And none of these tools see storage, egress or managed databases outside the cluster, which belong to wider cloud cost optimization.
Questions people ask
Is OpenCost the same as Kubecost?
They share a lineage. OpenCost was created by Kubecost and is now a vendor-neutral CNCF incubating project that does cost allocation with a basic UI and API. IBM Kubecost is the commercial product on top, adding multi-cluster views, budget alerts, savings recommendations, RBAC and support. If you only need per-namespace chargeback numbers in Grafana, OpenCost is enough.
Is Kubecost free?
Partly. As of October 2026 the IBM Kubecost Foundations tier is free for unlimited clusters up to 250 cores, with 15-day metric retention and community support. Larger fleets, longer retention, RBAC and the unified multi-cluster view require Enterprise Self-hosted, bought through the IBM store, or Enterprise Cloud. IBM publishes no list prices.
How much does Cast AI cost?
Cast AI doesn't publish prices. Its pricing page requests a custom quote based on cluster count, GPU usage and which Kubernetes platforms you run (EKS, GKE, AKS, OpenShift). Ask for the model in writing, whether it's per CPU or tied to savings, and compare it with the savings you could get by rightsizing requests yourself first.
The call we'd make
Start with OpenCost. Get honest allocation numbers into Grafana and find out who is spending before you spend on tooling. If you need dashboards, alerts and someone to yell at when a budget blows across many clusters, Kubecost Enterprise earns it. Reach for Cast AI only after you've rightsized the obvious offenders by hand and trust your workloads' fault tolerance enough to let a controller drive spot and node lifecycle. Buying automation before you understand your allocation is how you pay for savings you could have had from three PRs.
Sources
Cite this article
Kiril Urbonas (2026). Kubernetes Cost Tools: Kubecost vs OpenCost vs Cast AI. DevOpsNess. Updated 2026-10-31. https://www.devopsness.com/blog/kubernetes-cost-optimization-tools
[Kubernetes Cost Tools: Kubecost vs OpenCost vs Cast AI](https://www.devopsness.com/blog/kubernetes-cost-optimization-tools) (Kiril Urbonas, DevOpsNess, updated 2026-10-31)
More from Cloud
Explore more articles in this category
FinOps and Cloud Cost Management for Engineering Teams
Embed cost ownership in engineering: tags, budgets, and showback.
EKS Auto Mode: What Works and What Breaks in a Migration
We moved a 60-node production EKS cluster to Auto Mode. Some pain points evaporated, others got harder. The cost picture is more nuanced than the marketing suggests.
mTLS for Service-to-Service Auth: Beyond API Keys
A shared API key between two internal services proves nothing about who is calling. mTLS makes every service present a cryptographic identity instead.
You might have missed
Evergreen posts worth revisiting.