GKE cluster labels are not configured

Maintain consistent labels identifying each cluster’s environment and responsible team.

Description

Use resourceLabels in the GKE API to identify a cluster’s purpose and owner.

Potential impact

Missing labels make it harder to distinguish production from test clusters or allocate costs by team.

Remediation

Use standard keys such as env and owner, update them when ownership changes, and check them in inventory and billing. Keep secrets out of labels. Manage pod labels and IAM permissions separately.

Examples

Deployment Manager support has ended. These excerpts show GKE Cluster API fields. When updating an existing cluster with setResourceLabels, send the labels you want to keep and its latest labelFingerprint.

Before

yaml
name: my-cluster

After

yaml
name: my-cluster
resourceLabels:
  env: prod
  owner: platform

References