Helm Charts
We provide official Helm charts to deploy the ClusterCost stack on Kubernetes.
Charts Overview
Section titled “Charts Overview”The repository contains two main charts:
1. Agent Chart (clustercost-agent-k8s)
Section titled “1. Agent Chart (clustercost-agent-k8s)”Deploys a single cost agent per cluster.
- Resources: Creates a Deployment, ServiceAccount, RBAC roles, and Service.
- Configuration: Configured via
envvariables or aConfigMap. - Observability: Exposes metrics on port
8080. SupportsServiceMonitorfor Prometheus operator. - Defaults: Uses
jesuspaz/clustercost-agent-k8s:latest.
2. Dashboard Chart (clustercost-dashboard)
Section titled “2. Dashboard Chart (clustercost-dashboard)”Deploys the web UI for visualizing cost data.
- Resources: Creates a Deployment, Service, and optional Ingress.
- Configuration: Mounts a
ConfigMapdefining which agents to query. - Updates: Checksum annotations trigger automatic rollouts on config changes.
- Defaults: Uses
jesuspaz/clustercost-dashboard:latest, served on port9090.
Installation
Section titled “Installation”Prerequisites
Section titled “Prerequisites”- Kubernetes 1.19+
- Helm 3.0+
Installing a Chart
Section titled “Installing a Chart”-
Inspect defaults:
Terminal window helm show values charts/clustercost-agent-k8s -
Install:
Terminal window helm install my-agent charts/clustercost-agent-k8s \--namespace clustercost \--create-namespace
Configuration
Section titled “Configuration”Both charts support standard Helm configuration for:
replicaCountimage.repository/image.tagresources(CPU/Memory limits)nodeSelector,tolerations, andaffinityserviceAccount.annotations(for IRSA)
For a full list of values, please refer to the values.yaml file in each chart directory.