- Introduction
- Getting Started with Kubecost
- Launching Kubecost UI
- Monitoring Costs by Application
- Benefits of Kubecost
- Resources
Kubecost is a monitoring application which provides real-time cost visibility and insights for teams using Kubernetes, helping you continuously reduce your cloud costs.
Create required namespace for Kubecost resources to be placed under.
kubectl create ns kubecost
Run the following helm commands in terminal to install kubecost application into your K8 cluster.
helm repo add kubecost https://kubecost.github.io/cost-analyzer/
helm repo update
helm install kubecost kubecost/cost-analyzer -n kubecost --create-namespace \
--set kubecostToken="aGVsbUBrdWJlY29zdC5jb20=xm343yadf98"
If you are versed in Argo CD you may proceed to launch the Kubecost helm chart via the platform accordingly.
To obtain access to the Kubecost UI following a successful installation, enable port-forwarding with the following command:
kubectl port-forward --namespace kubecost deployment/kubecost-cost-analyzer 9090
You can now access the UI by visiting http://localhost:9090 in your web browser.
You can monitor various costs of the K8 cluster by namespace, the cloud provider and via routine reporting based on your needs.
Here are two compelling reasons why Kubecost can be a valuable asset for managing your Kubernetes deployments:
Kubecost provides real-time insights into your Kubernetes cluster's resource consumption and associated costs. It breaks down costs by namespace, deployment, or even individual containers, allowing you to pinpoint areas for optimization and identify potential cost inefficiencies. This transparency empowers you to make informed decisions about resource allocation and avoid unnecessary cloud spending.
Kubecost goes beyond simply presenting cost data. It analyzes your resource usage and automatically generates recommendations for optimization. This might include identifying over-provisioned resources that can be scaled down or suggesting more cost-effective instance types. By leveraging these insights, you can optimize your Kubernetes infrastructure and achieve significant cost savings without compromising performance.