Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ module "eks_main" {
| ingress\_additional\_chart\_version | Set the version for the chart | `string` | `4.0.18` | no |
| ingress\_additional\_http\_nodeport | Set port for additional ingress http nodePort | `int` | `31080` | no |
| ingress\_additional\_https\_nodeport | Set port for additional ingress https nodePort | `int` | `31443` | no |
| override | List of instance type configurations for node groups. Can be used to specify multiple instance types for spot instances or mixed instance policies. | `list(object({ instance_type = string }))` | `null` | no |
| ingress\_additional\_https\_traffic\_enabled | Set https traffic for additional ingress | `bool` | `false` | no |
| ingress\_additional\_requests\_cpu | Set how much cpu will be assigned to the request | `string` | `100m` | no |
| ingress\_additional\_requests\_memory | Set how much memory will be assigned to the request | `string` | `90Mi` | no |
Expand Down
7 changes: 7 additions & 0 deletions nodegroups.tf
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,13 @@ resource "aws_autoscaling_group" "eks" {
launch_template_id = aws_launch_template.eks_node_groups[each.key].id
version = "$Latest"
}

dynamic "override" {
for_each = each.value.override != null ? each.value.override : []
content {
instance_type = override.value.instance_type
}
}
}
}

Expand Down
6 changes: 6 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ variable "custom_node_groups"{
volume_size = number,
volume_iops = optional(number),
k8s_labels = optional(map(string)),
override = optional(list(object({
instance_type = any
})))
asg_tags = optional(list(object({
key = string,
value = string,
Expand Down Expand Up @@ -61,6 +64,9 @@ variable "managed_node_groups"{
volume_size = number,
volume_iops = optional(number),
k8s_labels = optional(map(string)),
override = optional(list(object({
instance_type = any
})))
k8s_taint = optional(list(object({
key = string,
value = string,
Expand Down