-
-
Notifications
You must be signed in to change notification settings - Fork 4.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add a switch to scope node groups to a single subnet #1944
Comments
unfortunately I don't think this is feasible from the module's perspective. there are two options users can take:
|
also - I would look into https://karpenter.sh/ instead of cluster autoscaler since it handles this scenario (still early days for that project though) |
@bryantbiggs Could you expand on why you don't think this is feasible from the module perspective? We're currently creating the necessary inputs upstream so I don't understand why this couldn't be handled by the module. Although if it's not desirable for the module to add the additional logic I can understand that. I'll definitely have a look at Karpenter though thanks for the suggestion! |
yes, the module is designed to afford users the opportunity to do this looping/comprehension to build their desired node groups, but that is because the module was designed to create "one of" not a defined set at a time. trying to take in a list and build out the desired node groups would severely impact the flexibility that is currently provided to users. therefore, its just not something that we can consider at this time |
Ok, thanks for taking the time to explain. |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Is your request related to a new offering from AWS?
No
Is your request related to a problem? Please describe.
Currently node groups are created with all the subnets that are passed in via
subnet_ids
. This causes issues when using Cluster Autoscaler and running stateful workloads backed by EBS volumes, as the EBS volumes are AZ locked. Having node group scoped to a single subnet is also recommended by AWS when working with stateful workloads.The module currently does check to see if each value in the
eks_managed_node_groups
has asubnet_id
field but it's somewhat difficult to generate the correct data structure downstream of the module.The required data structure for creating 3 node groups that only have a single subnet associated.
Describe the solution you'd like.
A variable bool to generate managed node groups per subnet passed in via
subnet_ids
. So for example if we pass in a single managed node groupt3medium
and threesubnet_ids
we'd end up with the threet3medium
node groups above.Currently we are achieving this downstream using the following:
Describe alternatives you've considered.
Documenting the solution to combine the
subnet_ids
and theeks_managed_node_groups
so people can use that approach if they wish to do this.Additional context
The text was updated successfully, but these errors were encountered: