Skip to main content
Install the operator to see workload costs, resource usage, and rightsizing recommendations in CostGraph. It collects cluster inventory, CPU and memory metrics, and network activity.

Not running Kubernetes?

Install the CostGraph Agent on your virtual machines or bare metal hosts.

Looking to self-host?

Deploy CostGraph in your own infrastructure.

Prerequisites

Prepare your cluster and credentials before installing. Network tracing requires privileged containers, a BTF-enabled kernel, and cgroup v2. If your nodes do not support it, add --set flowtrace.enabled=false to the install command.
GKE Autopilot clusters only. GKE Standard clusters aren’t affected.Autopilot blocks privileged containers, host namespaces, and most host paths unless a matching allowlist is installed in the cluster. The operator’s per-node collectors need that access:
  • Network tracing runs privileged in the host PID namespace and reads /proc, /sys/fs/cgroup, and /sys/fs/bpf.
  • The node exporter uses the host network and PID namespaces.
  • cAdvisor mounts the node’s filesystem.
Without allowlists, GKE rejects these pods at admission and they don’t start. Turning off network tracing alone doesn’t avoid this.Put the allowlists in place before you install:For how the pieces fit together, see About privileged workload admission in Autopilot mode.

Install

Use Helm to deploy the operator into the costgraph namespace.
1

Add the Helm repository

Add the repository and refresh its chart index.
2

Install the operator

Replace the cluster name and API key with your values.
For production, store the API key in a Kubernetes Secret in the costgraph namespace and use global.existingSecret instead. See Global settings for the required secret key.
3

Verify the installation

Check that the operator pods are running and ready.
Open Kubernetes clusters in CostGraph and select your cluster to check that data is arriving.
For GPU nodes, follow Accelerators. For scheduling, metrics sources, and chart values, see Configuration.