From a2f966b65c027be3f2bd3335bb14f89bc3c42369 Mon Sep 17 00:00:00 2001 From: Arnaud Meukam Date: Fri, 4 Aug 2023 17:00:51 +0200 Subject: [PATCH] GKE: Enable GKE CSI driver Starting with GKE 1.25, GKE CSI driver is enabled by default. Reconciciling the terraform code to reflect the change introduced. See: https://cloud.google.com/kubernetes-engine/docs/release-notes#June_08_2023 Signed-off-by: Arnaud Meukam --- .../terraform/kubernetes-public/10-cluster-configuration.tf | 3 +++ infra/gcp/terraform/modules/gke-cluster/main.tf | 3 +++ 2 files changed, 6 insertions(+) diff --git a/infra/gcp/terraform/kubernetes-public/10-cluster-configuration.tf b/infra/gcp/terraform/kubernetes-public/10-cluster-configuration.tf index 54d2e5a1750..01940cc68ca 100644 --- a/infra/gcp/terraform/kubernetes-public/10-cluster-configuration.tf +++ b/infra/gcp/terraform/kubernetes-public/10-cluster-configuration.tf @@ -159,6 +159,9 @@ resource "google_container_cluster" "cluster" { // Configure cluster addons addons_config { + gce_persistent_disk_csi_driver_config { + enabled = true + } horizontal_pod_autoscaling { disabled = false } diff --git a/infra/gcp/terraform/modules/gke-cluster/main.tf b/infra/gcp/terraform/modules/gke-cluster/main.tf index a615c80ccb5..b72da4aa7d4 100644 --- a/infra/gcp/terraform/modules/gke-cluster/main.tf +++ b/infra/gcp/terraform/modules/gke-cluster/main.tf @@ -161,6 +161,9 @@ resource "google_container_cluster" "prod_cluster" { // Configure cluster addons addons_config { + gce_persistent_disk_csi_driver_config { + enabled = true + } horizontal_pod_autoscaling { disabled = false }