diff --git a/gke.tf b/gke.tf index 21cbda9..cdf0ed4 100644 --- a/gke.tf +++ b/gke.tf @@ -23,12 +23,12 @@ resource "google_container_cluster" "engineering" { } resource "google_container_node_pool" "engineering_preemptible_nodes" { - name = "${var.cluster_name}-node-pool" - cluster = google_container_cluster.engineering.name - location = data.google_compute_zones.available.names.0 + name = "${var.cluster_name}-node-pool" + cluster = google_container_cluster.engineering.name + location = data.google_compute_zones.available.names.0 + + node_count = var.enable_consul_and_vault ? 5 : 3 - node_count = var.enable_consul_and_vault ? 3 : 1 - node_config { preemptible = true machine_type = "n1-standard-1" @@ -42,4 +42,4 @@ resource "google_container_node_pool" "engineering_preemptible_nodes" { "https://www.googleapis.com/auth/monitoring", ] } -} \ No newline at end of file +}