From 5ef9286aa1c05c5a26d580c4d694865d5c90b3c8 Mon Sep 17 00:00:00 2001 From: Tu Nguyen Date: Fri, 24 Apr 2020 08:31:18 -0700 Subject: [PATCH] up node_count to 5 and 3 --- gke.tf | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) 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 +}