-
-
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
feat: Propagate managed node group labels and taints to ASG as tags #2457
Conversation
I am getting |
If examples actually worked out of the box, which it didn't, it would probably be easier to contribute. Instead of not looking at the actually contribution, could we discuss if the approach is viable and different from what you previously tried, since you haven't commented on it yet ✌️ Where to go from here, any hints |
I'm sorry but you lost me - are you saying the example on |
Both. I'm editing stuff totally unrelated to the actual change in the example. Why would I do that if it worked out the box? But please comment on the approach and if it is any different if what you already tried? |
Yeah examples/eks_managed_node_group/ is broken alright. So reverting back my commits and running on commit id 4b7fe46 I initially get this error related to subnets and IPv6:
Fixing this by adding Then running into this error: Fixing it by changing Then running into conflicting CIDR for subnets because a previous failed run:
And I haven't even gotten close to spawning a cluster yet, nor tested my change. And I end up with the error you report for complete node group:
|
I think fixing that last error is completely out of scope and asking too much for a fix that just adds tags to asg's. I would suggest commenting out the |
I suspect this problem was with the example was introduced with release 3.16.0 of the VPC module, which introduces a lot of changes regarding IPv6. The version constraint on the VPC module referenced in the example allows for minor version upgrades. Is this intentional or should it be more specific and only allow patch upgrades? As for the problem with Changing the reference to the KMS key ARN, as @wcarlsen suggested, seems to fix it. I haven't dived into the subnet conflict issue 🤷. |
thanks for the call out - not sure why some of those examples stopped working but I have just updated to ensure they are functioning as intended |
Thanks @bryantbiggs 🥇 anything more you need from me in terms of making this PR ready for a second review? |
Just did another from scratch apply on the example pulling in your fixes and the asg tagging propagation still works as intended. Just to be safe ✌️ |
So @bryantbiggs any chance you had the time to look at the actual changes intended by this PR (node group taint and label propagation to asg) or is stuck because of something else I'm missing? |
Just wanted to add that my team and I are quite happy with having implemented automatic propagation of node group labels and taints as tags for the ASGs, when using cluster-autoscaler. This propagation can both be implemented outside the module as show in this issue #2448. But it can also be implemented from inside the module as well as shown with this PR, even though I think it is mostly an AWS responsibility, since we never really configure the ASGs. I hope I can convince someone to have a second look at this PR and give it an actual chance. |
the more I think about this, I don't see why this needs to be built into the module. Users have the ability to do this today as the module is written. I don't think the added complexity, the added variables, and now the expanded interface are warranted to support this |
I fully respect the explicit choice not to include an ASG tagging feature into the module. Once that is out of the way it is not like this topic is not showing up multiple times in the this projects issues and the statement made here (#2448 (comment)) about this not being possible, from the module perspective, is simply not true. |
I'm going to lock this pull request 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 related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Description
Propagate managed node group labels and taints to ASG as tags with configurable prefixes.
Motivation and Context
This is super relevant usage with cluster-autoscaler, when scaling from zero. Should address following issues #2448, #2128 and #1558.
Breaking Changes
I have disabled this feature by default, so we wont have any propagation of labels nor taints unless specified explicit.
How Has This Been Tested?
examples/*
to demonstrate and validate my change(s)examples/*
projectspre-commit run -a
on my pull requestI had a lot of issues actually getting example for eks-managed-node-groups to work, but finally managed.
I've tested this by changing examples/eks-manage-node-group. I've tested the following settings and changes:
Thanks to you guys for the effort and a great module and thanks to @abstrask for helping out.