diff --git a/aws/eks-customer/README.md b/aws/eks-customer/README.md index abd1b611..f98fb916 100644 --- a/aws/eks-customer/README.md +++ b/aws/eks-customer/README.md @@ -111,6 +111,7 @@ | [region](#input\_region) | The region for the EKS cluster | `string` | `"us-east-1"` | no | | [snapshot\_controller\_version](#input\_snapshot\_controller\_version) | n/a | `string` | n/a | yes | | [staff\_role\_arn](#input\_staff\_role\_arn) | The staff role arn | `string` | n/a | yes | +| [update\_config](#input\_update\_config) | Configuration block of settings for max unavailable resources during node group updates | `map(string)` |
{
"max_unavailable": 1
}
| no | | [use\_name\_prefix](#input\_use\_name\_prefix) | Determines whether to use `name` as is or create a unique name beginning with the `name` as the prefix | `bool` | `false` | no | | [utilities](#input\_utilities) | The list of utilities |
list(object({
name = string
enable_irsa = bool
internal_dns = any
service_account = string
cluster_label_type = string
}))
| n/a | yes | | [volume\_delete\_on\_termination](#input\_volume\_delete\_on\_termination) | Indicates whether the EBS volume is deleted on termination | `bool` | `true` | no | diff --git a/aws/eks-customer/eks_managed_node-group.tf b/aws/eks-customer/eks_managed_node-group.tf index 87398014..a194aca3 100644 --- a/aws/eks-customer/eks_managed_node-group.tf +++ b/aws/eks-customer/eks_managed_node-group.tf @@ -46,6 +46,8 @@ module "managed_node_group" { max_size = each.value.max_size desired_size = each.value.desired_size + update_config = var.update_config + taints = each.value.taints labels = each.value.labels diff --git a/aws/eks-customer/variables.tf b/aws/eks-customer/variables.tf index 7b3a1892..94b0ab5c 100644 --- a/aws/eks-customer/variables.tf +++ b/aws/eks-customer/variables.tf @@ -275,3 +275,11 @@ variable "volume_delete_on_termination" { type = bool default = true } + +variable "update_config" { + description = "Configuration block of settings for max unavailable resources during node group updates" + type = map(string) + default = { + max_unavailable = 1 + } +}