feat: allow setting worker node root volume size
Description
This pull request introduces a feature allowing users to specify the root volume size for worker nodes in Kubernetes clusters deployed on AWS. By adding the worker_node_volume_size variable, the configuration now supports flexible storage customization for each worker node's root volume. This can be helpful to prevent disk space issues when the worker nodes are running many containers.
Supporting information
- https://tasks.opencraft.com/browse/BB-9119
- https://docs.aws.amazon.com/eks/latest/userguide/worker.html
- https://github.com/terraform-aws-modules/terraform-aws-eks/blob/681e00aafea093be72ec06ada3825a23a181b1c5/examples/self_managed_node_group/main.tf#L230-L243
Testing instructions
Steps to test the changes:
- Deploy a new AWS cluster or apply the changes to an existing test cluster.
- Add the following to
cluster.yml:
TF_VAR_worker_node_volume_size: 40
- Run
./tf planand check the changes a new launch template configuration. - Run
./tf apply - Run
aws autoscaling start-instance-refresh --auto-scaling-group-name <auto-scaling-group-name>and wait for it to finish. - Ensure the worker nodes now have a 40GB EBS disk attached.
Dependencies
None
Screenshots
None
Checklist
If any of the items below are not applicable, do not remove them, but put a check in it.
-
All providers include the new feature/change -
All affected providers can provision new clusters -
Unit tests are added/updated -
Documentation is added/updated -
The TOOLS_CONTAINER_IMAGE_VERSIONin ci_vars.yml is updated -
The grove-template repository is updated
Additional context
None
Edited by Paulo Viadanna