From 99843f16e2829a836d8a89025535aa6c6a999465 Mon Sep 17 00:00:00 2001 From: Carter Bradford Date: Sun, 9 Dec 2018 05:52:09 -0600 Subject: [PATCH] Added support for preemptible nodes #36 --- cluster_regional.tf | 1 + cluster_zonal.tf | 1 + 2 files changed, 2 insertions(+) diff --git a/cluster_regional.tf b/cluster_regional.tf index 10ad08dc55..7fe325fae1 100644 --- a/cluster_regional.tf +++ b/cluster_regional.tf @@ -115,6 +115,7 @@ resource "google_container_node_pool" "pools" { disk_size_gb = "${lookup(var.node_pools[count.index], "disk_size_gb", 100)}" disk_type = "${lookup(var.node_pools[count.index], "disk_type", "pd-standard")}" service_account = "${lookup(var.node_pools[count.index], "service_account", "")}" + preemptible = "${lookup(var.node_pools[count.index], "preemptible", false)}" oauth_scopes = [ "https://www.googleapis.com/auth/cloud-platform", diff --git a/cluster_zonal.tf b/cluster_zonal.tf index adbc22cbd3..28422d4f95 100644 --- a/cluster_zonal.tf +++ b/cluster_zonal.tf @@ -115,6 +115,7 @@ resource "google_container_node_pool" "zonal_pools" { disk_size_gb = "${lookup(var.node_pools[count.index], "disk_size_gb", 100)}" disk_type = "${lookup(var.node_pools[count.index], "disk_type", "pd-standard")}" service_account = "${lookup(var.node_pools[count.index], "service_account", "")}" + preemptible = "${lookup(var.node_pools[count.index], "preemptible", false)}" oauth_scopes = [ "https://www.googleapis.com/auth/cloud-platform",