GKE Cost Allocation

For users managing workloads in Google Kubernetes Engine (GKE), CloudZero offers integrated support to capture and analyze your cost data using Google Cloud's GKE Cost Allocation feature.

📘

The following limitations apply to GKE Cost Allocation.

Google Cloud's GKE Cost Allocation feature does not account for Flexible Committed Use Discounts. As a result, the cost data shown in CloudZero may not reflect these discounts.

In addition, GKE Cost Allocation cannot ingest resource usage data, and as a result, it cannot calculate idle cluster costs.

Enable GKE Cost Allocation in Google Cloud

To enable CloudZero to integrate with GKE Cost Allocation, you must activate the GKE Cost Allocation feature in Google Cloud.

Prerequisites for CKE Cost Allocation

Processes to activate GKE Cost Allocation

Repeat the following processes for each cluster where you plan to activate GKE Cost Allocation:

  • To enable GKE Cost Allocation on an existing cluster, see Update a cluster in the Google Cloud documentation.
  • To enable GKE Cost Allocation when you create a new cluster, see Create a new cluster in the Google Cloud documentation.

The GKE Cost Allocation data will be available in CloudZero after the next billing ingest for the associated GCP project. Note that this can take up to three days.

View GKE Cost Allocation in CloudZero

After CloudZero has processed your GKE Cost Allocation data, you can view it in CloudZero. The example in the following image shows GCP cost data grouped by Kubernetes cluster:

Viewing GCP cost data grouped by cluster