Skip to content

Commit fa6bbf6

Browse files
committed
GKE: pass ephemeral_storage_local_ssd_config through node-pool module configuration
1 parent 32f3107 commit fa6bbf6

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

google/cluster/node-pool/configuration.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,6 @@ locals {
3737
node_workload_metadata_config = local.cfg["node_workload_metadata_config"] != null ? local.cfg["node_workload_metadata_config"] : "GKE_METADATA"
3838

3939
service_account_email = local.cfg["service_account_email"]
40+
41+
ephemeral_storage_local_ssd_config = local.cfg["ephemeral_storage_local_ssd_config"]
4042
}

google/cluster/node-pool/main.tf

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,6 @@ module "node_pool" {
3434

3535
service_account_email = local.service_account_email
3636
disable_per_node_pool_service_account = local.service_account_email == null ? false : true
37+
38+
ephemeral_storage_local_ssd_config = local.ephemeral_storage_local_ssd_config
3739
}

google/cluster/node-pool/variables.tf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ variable "configuration" {
3232
node_workload_metadata_config = optional(string)
3333

3434
service_account_email = optional(string)
35+
36+
ephemeral_storage_local_ssd_config = optional(object({
37+
local_ssd_count = number
38+
}))
3539
}))
3640
description = "Map with per workspace cluster configuration."
3741
}

0 commit comments

Comments
 (0)