Enable cost allocation in Google Cloud for Kubernetes cluster
Enable cost allocation for each Kubernetes cluster before you run a Google Cloud Billing download job to view the Kubernetes spend.
始める前に
Role required: Google Cloud administrator
- You should be familiar with Google Cloud policies.
- Install Discovery and Service Mapping Patterns application (sn_itom_pattern) 1.10.2 or higher. For more information, see Install Discovery and Service Mapping Patterns.
- Install CMDB CI Class Models (sn_cmdb_ci_class) version 1.53.1 or higher. For more information, see CMDB CI Class Models app.
- To set up Kubernetes discovery, see Kubernetes discovery using patterns.
このタスクについて
- 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.
手順
- Log in to the Google Cloud Console.
-
Select the hamburger icon (
).
- Select Kubernetes Engine.
- Select Clusters.
- In the Overview section, select a cluster name.
- In the Features section, enable Cost Allocation.
タスクの結果
The cost allocation for the selected Kubernetes cluster is enabled and you can view the Kubernetes spend.