-
Notifications
You must be signed in to change notification settings - Fork 320
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
[EKS] [request]: provide taints and labels for managed nodes from the start #1962
Comments
I assume that you're using a custom AMI with managed node groups? For standard or custom launch template nodegroups, we update the user data to set One workaround would be to set those fields in your user data to ensure that they get set right way. |
We were experiencing similar symptoms (node taints applied "late" by a lambda instead of on cluster join), This means that if for any reason you override the MNG's ASG's launch-template's user-data (that was our mistake due to legacy internal Infrastructure-as-Code), these flags need to be added to the user-data you provide in order to get the intended behaviour 🙂 |
It feels misleading to provide a |
@jeff-armis We've discussed adding what you describe to the bootstrap script. Besides the effort to implement that and test it, one limitation is that it won't work for customers that don't have connectivity to the EKS API within their nodes. That's not a huge deal and should still solve the issue for many customers, but it won't be a one size fits all fix and it will need to be behind a flag. |
Yes, it would have the same behavior as other supported flags like |
Community Note
Tell us about your request
provide taints and labels from the beginning of a nodes lifecycle, as if they had been on the kubelet command line
Which service(s) is this request for?
EKS
Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?
We switched to providing taints and labels via the managed node group after this feature was added in #917.
It appears that taints and labels are only applied around half a minute after the node joins the cluster. This has multiple undesirable side effect.
Are you currently working around this issue?
Not at all.
Possible workaround are:
Additional context
Due to the different way of Karpenter to bring up nodes its working as expected with it.
Tested with EKS managed node groups version 1.23 platform version eks.6
The text was updated successfully, but these errors were encountered: