-
-
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
Instance Refresh not triggering on launch_template changes #1365
Comments
@Patricol did you tried the instace refresh's example ? Is that example works for you ? Can you please share your configuration ? |
@Patricol as a work around please add the following to your
|
@barryib I'm working on a fix now. We need to bump/change the launch_template version to trigger the instance_refresh. Triggering from |
@bashims That does work for me. |
@bashims is there a reason why the node termination handler policy is added to the worker node role in the example? |
Nope. It should be attached to the node termination handler through IRSA. @stevehipwell can you please open a PR to fix that ? |
@barryib that's what I thought. Would you like me to also add the the spot instance termination and rebalance suggestion events to the example queue from the aws-node-termination-handler repo docs ? |
Yes you can if it's simple. Please add a link to the NTH docs also. People must follow that docs. The example is there for help only and not to address every NTH use cases. |
@stevehipwell I believe it is uses IRSA so there is no need for attaching it to the worker node role. This was probably a leftover i.e. before I switched to using IRSA. Thanks for removing the attachment. |
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. |
Description
With the new instance refresh functionality, changes to the launch template will not trigger a refresh, because the
autoscaling_group
'slaunch_template
block does not actually change if itsversion = $Latest
, as is the case by default.This is unexpected based on the comment here:
A refresh will always be triggered by a change in any of launch_configuration, launch_template, or mixed_instances_policy.
I tested by changing
ami_id
multiple times; which never triggered an instance refresh.All of the terraform resources appear to be created correctly; and I'm on the newest AWS provider (
3.40.0
).I think this was just a misunderstanding of the intended behavior of
aws_autoscaling_group
'sinstance_refresh
block.I suppose this module could handle bumping an explicitly set
launch_template
version
.Versions
v0.14.11
16.0.0
Reproduction
Skipping most repro descriptions because the module does correctly setup all the resources; they just don't behave as documented.
The text was updated successfully, but these errors were encountered: