Skip to content

Commit

Permalink
feat: added volume_type variable for node pools (#77)
Browse files Browse the repository at this point in the history
  • Loading branch information
Al-Pragliola authored Jul 16, 2024
1 parent 5a8a69a commit 9d5f4c9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions modules/eks/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ locals {
)
public_ip = false
root_volume_size = lookup(node_pool, "volume_size")
root_volume_type = lookup(node_pool, "volume_type", "gp2")
capacity_type = coalesce(
lookup(node_pool, "spot_instance", null),
false
Expand Down
1 change: 1 addition & 0 deletions modules/eks/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ variable "node_pools" {
spot_instance = optional(bool, false)
max_pods = optional(number, null) # null to use default upstream configuration
volume_size = optional(number, 100)
volume_type = optional(string, "gp2")
subnets = optional(list(string), null) # null to use default upstream configuration
labels = optional(map(string))
taints = optional(list(string))
Expand Down

0 comments on commit 9d5f4c9

Please sign in to comment.