From 042a114a38f1c19d90538a4a0a68320644d49185 Mon Sep 17 00:00:00 2001 From: Jacob Lerche Date: Thu, 16 May 2019 20:31:48 -0700 Subject: [PATCH] Adds monitor node count variable --- deploy/gcp/main.tf | 5 ++++- deploy/gcp/variables.tf | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/deploy/gcp/main.tf b/deploy/gcp/main.tf index f833830d0ed..aa906058d62 100644 --- a/deploy/gcp/main.tf +++ b/deploy/gcp/main.tf @@ -170,7 +170,7 @@ resource "google_container_node_pool" "monitor_pool" { cluster = "${google_container_cluster.cluster.name}" location = "${google_container_cluster.cluster.location}" name = "monitor-pool" - initial_node_count = "1" + initial_node_count = "${var.monitor_count}" node_config { machine_type = "${var.monitor_instance_type}" @@ -251,12 +251,15 @@ resource "null_resource" "get-credentials" { KUBECONFIG = "${local.kubeconfig}" } } + provisioner "local-exec" { when = "destroy" + command = <