-
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
Tags in managed node groups #1571
Comments
There is supposedly built-in support for cluster-autoscaler tags. This will only work if AWS automatically tags the ASG for the node group taints and labels, without then you can't scale from zero. https://docs.aws.amazon.com/eks/latest/userguide/managed-node-groups.html
|
I have experienced that when setting tags on a NodeGroup, the tags will propagate to the ASG and to the EC2 instances. When settings tags on a managedNodeGroup, the tags do NOT propagate down to the ASG or EC2. |
Is there a way to tag corresponding ASGs and instances? |
According to https://docs.aws.amazon.com/eks/latest/userguide/eks-using-tags.html, Amazon EKS managed node groups do not supports tag propagation yet. Currently, we would need to do some code to find the associated ASGs and tag them |
aws/containers-roadmap#608 is the AWS containers roadmap issue tracking this feature. |
For Cluster Autoscaler specifically, the EC2 instances and Auto Scaling Groups created for Managed NodeGroups are automatically tagged with the expected labels:
|
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
It seems the recommended way to apply tags to EC2 instances in EKS Managed Node Groups is using Launch Templates, which eksctl supports. Is that sufficient to fulfill this feature request? Cluster Autoscaler doesn't depend on tags on the EC2 instances, it depends on tags on the ASG, which are still unable to be customised per aws/containers-roadmap#608. |
Seems like we could just set the tags on the launch template, since |
The This adds the tag to all EC2 instances. You still cannot add tags to the ASG aws/containers-roadmap#608 (comment) |
I'm going to close this issue as the original intent of this was to be able to tag the EC2 instances, which you can.
I think if/when EKS add support for tagging the autoscaler it will likely be a no-op from our end, as we are already tagging the nodegroup and launch template, so its likely that if it was ever implemented the ASG would inherit the tags from one of those two. |
@aclevername Without this change, cluster-autoscaler scale up from 0 (eksctl docs) doesn't work with managed node groups. |
absolutely!
👍 |
@aclevername isn't this related to what @Skarlso is working on here #4853 🤔 maybe I am missing something. @afirth thanks for your comments, we are happy to accept PRs if you have a fix in mind 🙌🏻 🎉 |
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be disabled using DisableASGTagPropagation boolean in the configuration. Issue eksctl-io#1571
Please note that this behaviour has changed to:
|
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue eksctl-io#1571
…oScalingGroups (#5002) * Added Propagation of ManagedNodeGroup Tags to their AutoScalingGroups Changes to ensure that AutoScalingGroups Tags are the same as their ManagedNodeGroup. All tags are copied from the ManagedNodeGroup to the AutoScalingGroup. If the tags already exists, it is overridden. This is the default behaviour (as it is for Unmanaged NodeGroup) and can be enabled using propagateASGTags boolean configuration. Issue #1571 * Update generated files * fix existing unit tests * update documentation * Update generated files * consider new way of configuring tags propagation after the rebase * re-add disableASGTagPropagation doc for managed nodegroup * consider tags limits, move logic to a more appropriated place, re-add test for managernodegroup * fix usage of aws-sdk-go-v2, improve task parallelisation for managednodegroup creation * fix test linting * add unit tests * improve unit test structure for PropagateManagedNodeGroupTagsToASG, rename astypes package to asTypes * use const for auto-scaling-group string * improve some code structure
I think #5002 didn't link in a way to autoclose, but this is implemented there and should be closed? |
Yep. Thanks! :) |
Does this mean that tags will not get applied to instances and that the cluster autoscaler will not work?
The text was updated successfully, but these errors were encountered: