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",