-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
scaling managed nodegroups to 0 #3793
Comments
I think eks doesn't let you create a managed nodegroup with min as 0. However i read there is a workaround by manually updating asg size as zero. aws/containers-roadmap#724 |
Quick update on this:
The
Notice the
|
interesting. I wonder if its an unsupported value in cloudformation, but valid in the EKS api? Looking at the docs they both say https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-eks-nodegroup-scalingconfig.html |
Definitely, there was an error when I didn't set What we want to do though is set I'll jump in the code of |
Sorry, I must have done something wrong the last time because I tried again and it worked! The config file used was the following:
The nodegroup was created successfully:
Closing this issue since it is possible to create a managed nodegroup with |
@nikimanoledaki as per the discussion in aws/containers-roadmap, the auto-scaling-group must be tagged with the labels and taints that the managed nodegroup is tagged with, otherwise cluster-autoscaler is unable to scale-up from 0. So it is currently possible to create a managed nodegroup with I'm using this script posted later in the same issue linked to by @aclevername, to achieve what is being requested:
It would be great if eksctl handled 2 and 3 for us. |
Thank you for pointing that out @sammort! We should definitely track this in case we need to make changes to support this better. Reopening this issue and will investigate a bit more. |
Hi again @sammort, I believe the following should be helpful:
Does this solve 2 and/or 3? |
@nikimanoledaki that's great and certainly seems that it would create a managed nodegroup that would scale from 0, I'll test it out. Would it be possible for the ASG tags to be created automatically if the labels and taints have been defined? Seems that we are repeating ourselves in the config by having to add the following section as per the doc link
|
Good idea @sammort, that sounds reasonable! I just created a feature request that addresses this so that someone can pick it up soon (it's also in the team's backlog). I'll close this issue for now. Thanks so much for your contribution! 😊 🙌 |
Thanks for creating the feature request and thanks to you and the team for the great work 👍🏼 |
does eksctl let you create and scale managed nodegroups to 0? Lets find out and add support if we don't
The text was updated successfully, but these errors were encountered: