Skip to content

Commit

Permalink
Merge pull request #78 from sighupio/feature/port-volume-type
Browse files Browse the repository at this point in the history
feat: port volume type feature
  • Loading branch information
Al-Pragliola authored Jul 10, 2024
2 parents d50a0a7 + 73edc9a commit 549a4b1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/eks/eks.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ locals {
"instance_type" : worker.instance_type,
"tags" : [for tag_key, tag_value in merge(merge(local.default_node_tags, var.tags), worker.tags) : { "key" : tag_key, "value" : tag_value, "propagate_at_launch" : true }],
"volume_size" : worker.volume_size,
"volume_type" : worker.volume_type != null ? worker.volume_type : "gp2",
"subnetworks" : worker.subnetworks != null ? worker.subnetworks : var.subnetworks
"eks_target_group_arns" : worker.eks_target_group_arns
"bootstrap_extra_args" : "%{if lookup(worker, "max_pods", null) != null}--use-max-pods false%{endif} %{if lookup(worker, "container_runtime", null) == "containerd"}--container-runtime containerd %{endif}",
Expand All @@ -40,6 +41,7 @@ EOT
asg_min_size = lookup(node_pool, "min_size")
instance_type = lookup(node_pool, "instance_type")
root_volume_size = lookup(node_pool, "volume_size")
root_volume_type = lookup(node_pool, "volume_type")
target_group_arns = lookup(node_pool, "eks_target_group_arns")
key_name = aws_key_pair.nodes.key_name
public_ip = 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)
max_pods = optional(number) # null to use default upstream configuration
volume_size = number
volume_type = optional(string)
subnetworks = list(string) # null to use default upstream configuration
labels = map(string)
taints = list(string)
Expand Down

0 comments on commit 549a4b1

Please sign in to comment.