LOW
Source
Trivy
ID
AVD-GCP-0051

Clusters should be configured with Labels

Labels make it easier to manage assets and differentiate between clusters and environments, allowing the mapping of computational resources to the wider organisational structure.

Impact

Follow the appropriate remediation steps below to resolve the issue.

Set cluster resource labels

1
2
3
4
5
6
7
resource "google_container_cluster" "good_example" {
  name     = "my-gke-cluster"
  location = "us-central1"
  resource_labels = {
    "env" = "staging"
  }
}