Files
oam/knowledge base/kubernetes/kubecost.md
2025-07-10 20:18:40 +02:00

2.2 KiB

Kubecost

Monitoring application providing real-time cost visibility and insights.

Built on top of OpenCost.

  1. TL;DR
  2. Further readings
    1. Sources

TL;DR

Setup
helm repo add 'kubecost' 'https://kubecost.github.io/cost-analyzer/' && helm repo update 'kubecost'
helm search repo 'kubecost/cost-analyzer' --versions

helm show values --repo 'https://kubecost.github.io/cost-analyzer/' 'cost-analyzer'

helm --namespace 'kubecost' upgrade --install 'kubecost' 'kubecost/cost-analyzer' --create-namespace
helm --namespace 'kubecost' upgrade --install 'kubecost' --create-namespace \
  --repo 'https://kubecost.github.io/cost-analyzer/' 'cost-analyzer' \
  --set 'persistentVolume.enabled=false'

# EKS-specific
VERSION='2.8.0' \
helm --namespace 'kubecost' upgrade --install 'kubecost' --create-namespace \
  'oci://public.ecr.aws/kubecost/cost-analyzer' --version "$VERSION" \
  --values "https://raw.githubusercontent.com/kubecost/cost-analyzer-helm-chart/v$VERSION/cost-analyzer/values-eks-cost-monitoring.yaml"

helm --namespace 'kubecost' uninstall 'kubecost' \
&& kubectl delete namespace 'kubecost'
Usage
kubectl --namespace 'kubecost' port-forward 'deployment/kubecost-cost-analyzer' '9090'
open 'http://localhost:9090'

Further readings

Sources