Skip to content

Commit 32f3107

Browse files
committed
GKE: support ephemeral_storage_local_ssd_config
1 parent 7a95548 commit 32f3107

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

google/_modules/gke/node_pool/main.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,14 @@ resource "google_container_node_pool" "current" {
5858
effect = taint.value["effect"]
5959
}
6060
}
61+
62+
dynamic "ephemeral_storage_local_ssd_config" {
63+
for_each = var.ephemeral_storage_local_ssd_config == null ? [] : [1]
64+
65+
content {
66+
local_ssd_count = ephemeral_storage_local_ssd_config.value.local_ssd_count
67+
}
68+
}
6169
}
6270

6371
management {

google/_modules/gke/node_pool/variables.tf

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -138,3 +138,11 @@ variable "guest_accelerator" {
138138
description = "`guest_accelerator` block supports during node_group creation, useful to provision GPU-capable nodes. Default to `null` or `{}` which will disable GPUs."
139139
default = null
140140
}
141+
142+
variable "ephemeral_storage_local_ssd_config" {
143+
type = object({
144+
local_ssd_count = number
145+
})
146+
description = "`ephemeral_storage_local_ssd_config` block, useful for node groups with local SSD. Defaults to `null`"
147+
default = null
148+
}

0 commit comments

Comments
 (0)