Enable cost allocation in Google Cloud for Kubernetes cluster

  • Freigeben Version: Australia
  • Aktualisiert 12. März 2026
  • 1 Minute Lesedauer
  • Enable cost allocation for each Kubernetes cluster before you run a Google Cloud Billing download job to view the Kubernetes spend.

    Vorbereitungen

    Role required: Google Cloud administrator

    Warum und wann dieser Vorgang ausgeführt wird

    • For identifying resources for Kubernetes clusters during billing download, the tag sn_ccm_k8_cluster_name is added to the resources, which already have goog-k8s-cluster-name tags.
    • You must enable cost allocation for each individual Kubernetes cluster.

    Prozedur

    1. Log in to the Google Cloud Console.
    2. Select the hamburger icon (Hamburger).
    3. Select Kubernetes Engine.
    4. Select Clusters.
    5. In the Overview section, select a cluster name.
    6. In the Features section, enable Cost Allocation.

    Ergebnisse

    The cost allocation for the selected Kubernetes cluster is enabled and you can view the Kubernetes spend.