diff --git a/terraform/test.tf b/terraform/test.tf index e451c9c09774c3305e6bbf25c1c3bae695ba9e52..9ec066c7ff535fd0b9434eafac3f395fd015bf25 100644 --- a/terraform/test.tf +++ b/terraform/test.tf @@ -29,11 +29,11 @@ variable "gcp_project_id" { } variable "gcp_default_region" { - default = "europe-west3" + default = "us-east4" } variable "gcp_default_zone" { - default = "europe-west3-b" + default = "us-east4-a" } # GKE Settings @@ -42,7 +42,7 @@ variable "gcp_default_zone" { locals { vpc = { node_subnet_ip_range = "10.162.4.0/22" - pod_subnet_ip_range = "10.43.0.0/16" + pod_subnet_ip_range = "10.43.0.0/17" service_subnet_ip_range = "10.143.2.0/23" pod_subnet_name = "gke-pod-alias-ips" } @@ -60,6 +60,11 @@ locals { node_disk_type = "pd-standard" node_image_type = "COS" } + stateful = { + node_version = "1.20.10-gke.2100" + initial_node_count = 8 + machine_type = "n1-highmem-4" + } } @@ -257,8 +262,8 @@ resource "google_container_node_pool" "stateful-1-23-12-gke-1600" { name = "stateful-1-23-12-gke-1600" cluster = google_container_cluster.gke-cluster.name version = "1.23.12-gke.1600" - initial_node_count = 20 - location = "europe-west3" + initial_node_count = 40 + location = "us-east4" management { auto_repair = true @@ -266,6 +271,7 @@ resource "google_container_node_pool" "stateful-1-23-12-gke-1600" { } node_config { + preemtible = true machine_type = local.stateful.machine_type disk_size_gb = local.cluster.node_disk_size_gb disk_type = local.cluster.node_disk_type