-
-
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
asg size changes should be ignored. #34
Comments
Hey @ozbillwang 👋 So if I understand this correctly, the only value you're wanting to ignore is the This sounds reasonable to me. Looking forward to your PR. Thanks for going through the process! 🏅 |
PR has been raised. |
so i guess with this PR merged we can experiment with external node autoscaler and in the end it will be compatible with terraform |
This is no compatible problem. The benefit for this feature is, if you have running system with higher desired capacity, the change applied without reduce running worker nodes |
#34 - asg size changes should be ignored - desired_capacity
Good observations. Yea this whole space is tricky, trying to determine which declarative system should own which resources, but I think in this case it makes good sense to defer to the k8s autoscaler. 👍 |
Hi! Why did you implement this rule? Does not it drive to configuration drift? Anyway it should be an opportunity to make any changes through terraform configuration, not by manual click in AWS console! |
@dev-e no, because in k8s you need to use the cluster-autoscaler: https://github.com/terraform-aws-modules/terraform-aws-eks/blob/master/docs/autoscaling.md |
@max-rocket-internet use of cluster-autoscaler is not mandatory. What if you want to control number of nodes by yourself? |
@dev-e sure but then you make the change manually. |
@max-rocket-internet, and so we get a configuration drift. |
Sure. But most people use the cluster-autoscaler which is the proper way of handling scaling up and down. So what can we do? Lifecycle rules don't support interpolation so we can't make it easily configurable either. |
@max-rocket-internet, thanks, I understood your argumentation. Actually I meant the minimum number of nodes that cluster-autoscaler cannot bring down. With |
This is just blatantly false. |
Especially given that less and less support for the autoscaler is built in, it seems like this should be configurable. I will likely open a PR for this. |
Or I guess it has to be a static list. This is really unfortunate. |
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. |
I have issues
asg size changes should be ignored.
I'm submitting a
What is the current behavior
Updated asg sized after deploy,
terraform apply
detects the changes, which should be ignored.At least change in
desired_capacity
should be ignored.What's the expected behaviour
Ignore the changes, since we don't want the running system to be re-sized.
Environment
Other relevant info
If you are fine to ignore change in
desired_capacity
, I can raise PR for this feature, please confirm.The text was updated successfully, but these errors were encountered: