7 Kubernetes Cost Optimization Tools To Observe and Save on Costs
Tags: kubernetes, aws, cloud, cost
Published: 2022-10-21 09:47:47

The 2021 CNCF survey estimates about 5.6 million Kubernetes developers worldwide, which is a 67% increase compared to the previous year. Around 90% of Kubernetes users use managed services from the major cloud providers. (Datadog container report)

While running Kubernetes in production, the costs can quickly spiral out of control. But deriving actionable insights from the cloud provider billing APIs or console is challenging.

Gaining visibility into Kubernetes costs is an essential first step in taking back control of your Kubernetes costs. You would then want a granular view of costs based on namespace, workload, nodes, and pods to translate it into environment and app costs. Second, you are using the metrics to get a handle on the utilization by setting the correct scaling and resource requests.

Several third-party software tools are built to save on your Kubernetes running costs. They often cover both the visibility and utilization aspects of Kubernetes costs. This article looks at five popular tools to understand and save on Kubernetes costs.

## Kubecost

Kubecost allows us to keep the cost of the k8s cluster by either estimating cost or connecting to a managed k8s provider to get a precise figure. Apart from showing the cost, it also recommends tips on how to save costs. The front-end UI displays this data on Grafana dashboards.

Kubecost can monitor the costs of Kubernetes in any environment, including air-gapped, on-prem, and cloud providers AWS, GCP, and Azure. In the Kubecost dashboard, you can see the following sections: Overview, Cost Allocation, Savings, Report, and Others. Integrates with cloud provider’s billing APIs to collect the actual costs and automatically updates it. Here's the [Helm chart](https://github.com/kubecost/cost-analyzer-helm-chart) to install Prometheus, kube-state metrics, Grafana, and more.

### Key benefits

1. Out-of-the-box cost metrics in Prometheus format to plug into observability tools and DevOps automation stages.
2. It comes with a built-in cluster health score and recommendations.
3. Configurable real-time alerts and automated recurring cost reports.

### Pricing

Kubecost has a forever free tier that covers one cluster, 15-day metrics retention, cost monitoring, and allocation. Their business plan costs $449/mo for 100 nodes and $799/mo for 200 nodes. Paid plans also include longer metrics retention, saved reports, and team updates & notifications. Enterprise plans are also available; contact the Kubecost team [here](https://www.kubecost.com/about/#contact-module-2).

All plans include unlimited users, no infrastructure data shared, and open-core software.

They also offer a self-managed open-source product called [OpenCost.io](https://www.opencost.io/).

![Kubecost](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8uhkdxqk43dwvbmlog1x.png)

Image source: [https://blog.kubecost.com/blog/kubernetes-cost-monitoring/](https://blog.kubecost.com/blog/kubernetes-cost-monitoring/)

## Anodot

[Anodot](https://www.anodot.com/cloud-cost-management/) is a business intelligence platform with analytical features built around revenue-critical business incidents. Their cloud cost management tool directly links business KPIs and cloud spending. The tool also provides personalized recommendations.

You can seamlessly monitor and optimize your cloud spending across AWS, GCP, and Azure. With the ability to dive deeper into your data details to get a clear picture of how infrastructure and economies are changing.

### Pricing

The pricing information is limited. [Request a demo](https://www.anodot.com/request-demo/) to get to know the actual and up-to-date pricing. The below pricing is from [AWS Marketplace](https://aws.amazon.com/marketplace/pp/prodview-jgixbnlrsanpi).

| Units | Description | 1 Month | 12 Months |
| --- | --- | --- | --- |
| Up to 1,000 Metrics | Use up to 1,000 metrics reported to Anodot per month | $2,000 | $20,000 |
| Users | Up to 5 users allowed to access the Anodot application | $100 | $1,000 |

### Key benefits

1. Mapping costs in correlation with business metrics.
2. Node-level insights into Kubernetes costs. It combines Kubernetes costs with non-containerized costs and business metrics.
3. Integrated platform to monitor business data like payments, cost management, and CX

![Anodot](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jrvveewo7fs48iqzkp7w.png)

Image source: [https://www.anodot.com/cloud-cost-management/](https://www.anodot.com/cloud-cost-management/)

## CloudZero

CloudZero provides cloud cost optimization, Kubernetes cost analysis, unit cost analysis, SaaS COGS management, and more. It works similarly to infrastructure as code. You can define how to organize costs in a code artifact. It comes with the ability to dive down costs to cost per customer, cost per feature, cost per environment, cost per team, or cost per product.

It works with Kubernetes, shared costs in multi-tenant applications, and non-taggable AWS services. Easily ingest your data from cloud providers like AWS, Azure, and GCP, plus software platforms like New Relic, MongoDB, Databricks, and Snowflake. Set cost anomaly alerts, view cost breakdowns by product, and receive weekly updates.

### Key Benefits

1. SaaS COGS measurement, granular cost visibility
2. Cost intelligence between untagged, untaggable, and shared resources
3. Single dashboard for AWS, Azure, GCP, Snowflake, New Relic, and Kubernetes

### Pricing

Their CloudZero on-demand [pricing](https://aws.amazon.com/marketplace/pp/prodview-qvzdmjdawnphe) is based on the units of $1K/month AWS spend (overages and limitations apply). Their CloudZero Custom plan provides Unlimited access to the CloudZero platform, regardless of your AWS spend. Additional usage is charged monthly for each $1K AWS spent over the contract - $19/unit.

| Units | 1 Month | 12 Months | 24 Months | 36 Months |
| --- | --- | --- | --- | --- |
| CloudZero On Demand | $19 | $209 | $399 | $608 |
| CloudZero Custom | $170,000 | $2,000,000 | $4,000,000 | $6,000,000 |


![CloudZero](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/84yhnsutu70jvahz862s.png)

Image source: [https://www.g2.com/products/cloudzero/reviews](https://www.g2.com/products/cloudzero/reviews)

> 💡 New to Kubernetes and not sure how to set up your first cluster? 
> Check out our [quick start guide](https://www.argonaut.dev/docs/quick-start?utm_source=dev-to&utm_medium=k8s-cost-tools) for Kubernetes on both AWS and GCP.

## Cast.ai

It provides an automated approach to cloud cost optimization and monitoring. [Cast.ai](http://Cast.ai) supports AWS, GCP, Azure, and self-hosted Kubernetes. It can automatically analyze your cluster and prepare a custom savings report in as little as 5 minutes. They claim that their clients save an average of 63% on their cloud bills.

The tool can reduce costs by instant rebalancing, real-time autoscaling, spot instance automation with Fallback, regular cost monitoring and reporting, and providing security insights.

### Key benefits

1. 24/7 automatic monitoring, analyzing, and optimizing
2. Real-time engine for instant rebalancing
3. Vendor-neutral solution with no lock-in

### Pricing

They provide a free tier that gives basic recommendations and has unlimited analysis. The paid [plans](https://cast.ai/pricing/) are charged based on a monthly subscription + charge per CPU. Starting at $200/mo + $5/CPU.

![cast.ai](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/grhq98uc31fzatwk0cfu.png)

Image source: [https://cast.ai/](https://cast.ai/)

## Loft

[Loft.sh](https://loft.sh/) provides self-serve Kubernetes solutions for cost optimization, CI/CD, policy enforcement, user management, collaboration, and more. It helps save on Kubernetes costs by using [quotas and space constraints](https://loft.sh/docs/getting-started/explore/restricting-access) which helps while sharing your clusters among multiple users and teams. Auto delete for idle namespaces and sleep mode for idle workloads also saves costs.

Loft is also the maintainer of open-source projects such as [DevSpace](https://www.devspace.sh/) and [vcluster](https://www.vcluster.com/).

### Key Benefits

1. Easy-to-use self-serve tools for managing Kubernetes clusters
2. Automatic idle detection and sleep mode to save costs
3. Sharing clusters across multiple teams and users

### Pricing

Loft has a free version that allows up to 3 users and 2 clusters. The paid version costs $20/user/month. They also have an [enterprise version](https://loft.sh/pricing/self-hosted/) available. Their open-source tools are also great tools to make using Kubernetes easier.

![Loft.sh](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ya46lhw1a8dml3m1wssu.png)

Image source: [https://loft.sh/docs/clusters/guides/monitoring](https://loft.sh/docs/clusters/guides/monitoring)

## Vantage

[Vantage.sh](http://Vantage.sh) brings all your cloud costs to one central place. With integrations with AWS, Snowflake, Datadog, and more, it securely accesses cost data. Through this, you can understand per-resource costs, forecast future savings, dive into Kubernetes costs, and get alerts for unexpected changes.

### Key Benefits

1. Fully managed with support for Prometheus and OpenCost
2. Breakdown of resource usage and costs by service, namespace, or label
3. Ability to monitor all cloud costs beyond Kubernetes in one place

### Pricing

Vantage has a free tier to get started which supports up to $2,500 monthly cost. The paid tiers depend on the monthly tracked costs across your connected cloud resources. They also have an enterprise version which is billed at 1% of your monthly costs. More details on the [pricing here](https://www.vantage.sh/pricing).

![Vantage](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/qyluwtvwr8zbthxnugq6.png)

Image source: [https://www.vantage.sh/features/kubernetes](https://www.vantage.sh/features/kubernetes)

## Yotascale

The engineering-centric cloud cost management tool is built to scale with cloud complexity. It provides a centralized view of all your multi-cloud costs, including granular support and reporting for Kubernetes, containers, and microservices. These data points are also mapped to the business context and can be drilled down further to get analytics.

### Key Benefits

1. As their [blog](https://yotascale.com/blog/kubernetes-amazon-eks-labels-value/) explains, Yotascale’s tools help you leverage tags and labels for more accurate visibility into your cloud resource usage.
2. Yotascale takes the shared resources and allocates them not just by tags in AWS but also by Kubernetes labels, splitting up the cost of a cluster based on the utilization metrics from the pod, which can then be allocated back to the specific team deploying them.
3. Yotascale also shows your EC2 resources running on your Kubernetes clusters with a breakdown by pod, including the complete picture of the cost of service and application by an individual engineering team.

### Pricing

Yotascale is currently available with their Starter Package at $49K for six months. This package includes $25K worth of cloud consultation, unlimited AWS resources, support, premium onboarding, and training. You can [sign up here](https://yotascale.com/cloud-cost-management/).

![Yotascale](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/yn3pxwew58mx79s199g6.png)

Image source: [https://www.g2.com/products/yotascale/reviews](https://www.g2.com/products/yotascale/reviews)

## Conclusion

In the table below, we've summarized five things people often ask about these products.

1. Availability of a free option
2. Provision of cloud infra costs along with k8s costs
3. k8s costs breakdown (granular metrics)
4. If alerts and thresholds can be set for easy admin
5. If business metrics (teams, customers, COGS, etc.) are provided out of the box

|  | Free option | Granular metrics | Infra metrics ( storage, etc.) | Alerts and thresholds | Business metrics |
| --- | --- | --- | --- | --- | --- |
| Kubecost | Self-hosted OSS ([OpenCost](https://www.opencost.io/))| [Yes](https://guide.kubecost.com/hc/en-us/articles/4425134686743-User-Metrics). Node, network. | No | [Yes](https://www.kubecost.com/features/#alerts-governance) | No |
| Anodot | No | [Yes](https://www.anodot.com/cloud-cost-management/). API, network, resource, container. | Yes | [Yes](https://www.anodot.com/blog/kubernetes-monitoring-best-practices/) | Yes |
| CloudZero | No | Yes. Container-level. | No | Yes | [Yes](https://www.cloudzero.com/platform/dimensions) |
| Cast.ai | [Free tier](https://cast.ai/pricing/) | [Yes](https://cast.ai/cloud-cost-monitoring/). Resource, cluster, workload, namespace.  | No | No | No |
| Loft | [Free self-hosted](https://loft.sh/pricing/self-hosted/) | Yes. Namespace, workload, resource. | No | No | No |
| Vantage | [Free tier](https://www.vantage.sh/pricing) | Yes. Service, label, namespace, resource. | Yes | Yes | Yes |
| Yotascale | No | Yes. Namespace, pod, label, deployment. | Yes | Yes | Yes |

Kubernetes cost optimization tools can be hard to justify if it is not aligned with your cluster and resource usage. It happens because getting significant savings from these tools depends on choosing a tool with the right pricing model.

The typical pricing models for such cost optimization tools are subscription-based, percentage of savings, node-based pricing, and usage (metrics reported) based. These models can be seen in the products above.

Here are a few things to keep in mind while setting up the cost optimization tools:

1. Before getting started, monitor your clusters to identify potential savings. You can do so with the [Kubernetes dashboard](https://kubernetes.io/docs/tasks/access-application-cluster/web-ui-dashboard/), a free [Cast.ai](https://cast.ai/pricing/), or a [Kubecost](https://www.kubecost.com/features/) plan.
2. Check if the cloud service provider’s monitoring is sufficient or if you require separate monitoring dashboards.
3. Setting up [Prometheus + Grafana](https://loft.sh/blog/kubernetes-cost-monitoring-with-prometheus-and-grafana/) or ELK Stack for cost monitoring is possible but takes time and effort to install and configure.
4. It is essential to have team consensus before making the buying decision into FinOps tools. Using the same tool across all teams using Kubernetes makes your operations more manageable.
5. Cutting back on automation and choosing the right amount for your cluster can help save money, especially if your cluster doesn’t need as much autoscaling, rebalancing, etc.
6. You can save more by paying for longer terms on tools like [CloudZero](https://aws.amazon.com/marketplace/pp/prodview-qvzdmjdawnphe) on demand & [Anodot](https://aws.amazon.com/marketplace/pp/prodview-jgixbnlrsanpi).

Continue reading with this article on [Kubernetes practical considerations](https://www.argonaut.dev/blog/kubernetes-practical-considerations?utm_source=dev-to&utm_medium=k8s-cost-tools) that goes beyond cost and talks about other essentials like developer experience and setup evolution.

---

With [Argonaut](https://www.argonaut.dev/?utm_source=dev-to&utm_medium=k8s-cost-tools), you can quickly deploy and manage your Kubernetes deployments in AWS or GCP. Moreover, you can also provision cloud infra, deploy, and manage all your apps from one place. Get started with [Argonaut](https://www.argonaut.dev/?utm_source=dev-to&utm_medium=k8s-cost-tools/) today!