From c0c8d033f8693fffcd89141968a9dce172df7df8 Mon Sep 17 00:00:00 2001 From: pk0331 <105767668+pk0331@users.noreply.github.com> Date: Fri, 11 Aug 2023 17:14:46 +0530 Subject: [PATCH] Gke 1.27 (#118) --- modules/gcp/gke/main.tf | 4 ++-- modules/gcp/gke/variables.tf | 3 +-- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/modules/gcp/gke/main.tf b/modules/gcp/gke/main.tf index 720ee6d..734cef8 100644 --- a/modules/gcp/gke/main.tf +++ b/modules/gcp/gke/main.tf @@ -39,7 +39,7 @@ resource "google_compute_subnetwork" "cluster_subnet" { module "gke" { depends_on = [google_compute_subnetwork.cluster_subnet] - source = "github.com/argonautdev/terraform-google-kubernetes-engine//modules/private-cluster?ref=v21.1.6" + source = "github.com/argonautdev/terraform-google-kubernetes-engine//modules/private-cluster?ref=v21.1.8" project_id = var.project_id name = var.cluster_name description = var.description @@ -54,7 +54,7 @@ module "gke" { filestore_csi_driver = var.filestore_csi_driver horizontal_pod_autoscaling = var.horizontal_pod_autoscaling enable_vertical_pod_autoscaling = var.enable_vertical_pod_autoscaling - kubernetes_version = var.kubernetes_version + kubernetes_version = var.platform_version initial_node_count = var.initial_node_count ##How many instances should be launched in each zone node_pools = var.node_pools remove_default_node_pool = var.remove_default_node_pool diff --git a/modules/gcp/gke/variables.tf b/modules/gcp/gke/variables.tf index 742e5ea..0ed41c2 100644 --- a/modules/gcp/gke/variables.tf +++ b/modules/gcp/gke/variables.tf @@ -125,10 +125,9 @@ variable "horizontal_pod_autoscaling" { } ## https://cloud.google.com/kubernetes-engine/versioning#specifying_cluster_version -variable "kubernetes_version" { +variable "platform_version" { type = string description = "The Kubernetes version of the masters." - default = "1.24" } variable "initial_node_count" {