GoogleCloudPlatform / gke-poc-toolkit

📦 Demo generator for Google Kubernetes Engine!
Apache License 2.0
91 stars 36 forks source link

Update terraform module for GKE #176

Open jeejeejango opened 1 year ago

jeejeejango commented 1 year ago

Is there a plan to update the terraform modules to v24.0.0? The current settings is outdated as "cos" image type is no longer supported in v1.23. Configuration defaultNodepoolOS is also not used in the generated terraform.tfvars.

lenny-slalom commented 1 year ago

+1 for this. No matter which Containerd node image selected, the following error is produced.

FATA[0170] error running Apply: exit status 1

Error: googleapi: Error 400: 
        (1) Creation of node pools using node images based on Docker container runtimes is not supported in GKE v1.23. This is to prepare for the removal of Dockershim in Kubernetes v1.24. We recommend that you migrate to image types based on Containerd (examples). For more information, contact Cloud Support
        (2) Creation of node pools using node images based on Docker container runtimes is not supported in GKE v1.24+ clusters as Dockershim has been removed in Kubernetes v1.24., badRequest

  with module.cluster_build.module.gke_module[0].module.gke["cluster-name"].module.gke.google_container_cluster.primary,
  on .terraform/modules/cluster_build.gke_module.gke/modules/beta-private-cluster/cluster.tf line 22, in resource "google_container_cluster" "primary":
  22: resource "google_container_cluster" "primary" {