Skip to content

Commit 99843f1

Browse files
Added support for preemptible nodes #36
1 parent 3398b11 commit 99843f1

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

cluster_regional.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ resource "google_container_node_pool" "pools" {
115115
disk_size_gb = "${lookup(var.node_pools[count.index], "disk_size_gb", 100)}"
116116
disk_type = "${lookup(var.node_pools[count.index], "disk_type", "pd-standard")}"
117117
service_account = "${lookup(var.node_pools[count.index], "service_account", "")}"
118+
preemptible = "${lookup(var.node_pools[count.index], "preemptible", false)}"
118119

119120
oauth_scopes = [
120121
"https://www.googleapis.com/auth/cloud-platform",

cluster_zonal.tf

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ resource "google_container_node_pool" "zonal_pools" {
115115
disk_size_gb = "${lookup(var.node_pools[count.index], "disk_size_gb", 100)}"
116116
disk_type = "${lookup(var.node_pools[count.index], "disk_type", "pd-standard")}"
117117
service_account = "${lookup(var.node_pools[count.index], "service_account", "")}"
118+
preemptible = "${lookup(var.node_pools[count.index], "preemptible", false)}"
118119

119120
oauth_scopes = [
120121
"https://www.googleapis.com/auth/cloud-platform",

0 commit comments

Comments
 (0)