Ensure labels are configured for Google Container Cluster

LOW

Description

Google Container Cluster is configured without labels. Labels allow you to better manage your clusters.

Remediation

In GCP Console -

  1. Open the GCP Portal and Go to the Google Kubernetes Engine (GKE).
  2. Click on the checkbox for cluster you want to edit.
  3. Click on Labels and Click on add label button.
  4. Add the Desired Label.
  5. Click Save.

In Terraform -

  1. In the google_container_cluster resource, set the attribute labels to a valid value.

References:
https://cloud.google.com/kubernetes-engine/docs/how-to/shielded-gke-nodes
https://registry.terraform.io/providers/hashicorp/google/latest/docs/resources/container_cluster#database_encryption
https://cloud.google.com/resource-manager/docs/creating-managing-labels#:~:text=Open%20the%20Manage%20resources%20page%20in%20the%20Google%20Cloud%20console.&text=On%20the%20Manage%20resources%20page,label%20you%20want%20to%20add.

Policy Details

Rule Reference ID: AC_GCP_0019
CSP: GCP
Remediation Available: No
Resource Category: Compute

Frameworks