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 = <