Skip to content

Commit

Permalink
Adding max unavailable for node group updates (#798)
Browse files Browse the repository at this point in the history
* CLD-8769: Adding max unavailable for node group updates

* CLD-8769: Update DOCS

* CLD-8769: Update DOCS
  • Loading branch information
andrleite authored Jan 13, 2025
1 parent 674e8fe commit 55969d3
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
1 change: 1 addition & 0 deletions aws/eks-customer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@
| <a name="input_region"></a> [region](#input\_region) | The region for the EKS cluster | `string` | `"us-east-1"` | no |
| <a name="input_snapshot_controller_version"></a> [snapshot\_controller\_version](#input\_snapshot\_controller\_version) | n/a | `string` | n/a | yes |
| <a name="input_staff_role_arn"></a> [staff\_role\_arn](#input\_staff\_role\_arn) | The staff role arn | `string` | n/a | yes |
| <a name="input_update_config"></a> [update\_config](#input\_update\_config) | Configuration block of settings for max unavailable resources during node group updates | `map(string)` | <pre>{<br/> "max_unavailable": 1<br/>}</pre> | no |
| <a name="input_use_name_prefix"></a> [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 |
| <a name="input_utilities"></a> [utilities](#input\_utilities) | The list of utilities | <pre>list(object({<br/> name = string<br/> enable_irsa = bool<br/> internal_dns = any<br/> service_account = string<br/> cluster_label_type = string<br/> }))</pre> | n/a | yes |
| <a name="input_volume_delete_on_termination"></a> [volume\_delete\_on\_termination](#input\_volume\_delete\_on\_termination) | Indicates whether the EBS volume is deleted on termination | `bool` | `true` | no |
Expand Down
2 changes: 2 additions & 0 deletions aws/eks-customer/eks_managed_node-group.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
8 changes: 8 additions & 0 deletions aws/eks-customer/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

0 comments on commit 55969d3

Please sign in to comment.