Skip to content
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

AWS Autoscaling: How to specify min/max nodes with autodiscovery? #1013

Closed
trondhindenes opened this issue Jun 22, 2018 · 9 comments
Closed

Comments

@trondhindenes
Copy link

From what I can see in the docs, I can either specify a "node group" (which takes min/max nodes) or use autodiscovery tags. It's not clear from the documentation how to specify min/max nodes when autodiscovery is used. It would be awesome if that was clarified.

@aleksandra-malinowska
Copy link
Contributor

See usage described in #462, which added support for it on GCE.

@trondhindenes
Copy link
Author

Does that mean AWS support was already in place, or that there isn't support for it on AWS? It's not clear to me from looking at #462.

@aleksandra-malinowska
Copy link
Contributor

The feature was originally developed for AWS case. I'm not sure what's the current status, but there were several issues tracking fixes for setting min/max limits in that env. You can also try asking on sig-autoscaling slack channel

@trondhindenes
Copy link
Author

I tried the same parameter structure (wow did I just write that) as in the PR, and that's not working at all:
--node-group-auto-discovery=asg:tag=k8s.io/cluster-autoscaler/enabled,kubernetes.io/cluster/rtv-dev-cluster02,minNodes=1,maxNodes=10
It works fine if I removed the minNodes/maxNodes thingy.

@johanneswuerbach
Copy link
Contributor

If you are using autodiscovery the min/max values are taken from the discovered ASGs and can be adjusted on the fly by changing the values of the AWS ASG itself.

You can override this by manually specifying an ASG and providing min/max as autoscaler parameters. This always takes precedence over autodiscovered values.

@trondhindenes
Copy link
Author

Thanks @johanneswuerbach . So what you're saying is that as long as auto-discovery is enabled, cluster-autoscaler will always respect the limits set in the ASG.

@johanneswuerbach
Copy link
Contributor

Correct, the autoscaler is only modfiying the desired size value of an asg, never min or max.

@mf-lit
Copy link
Contributor

mf-lit commented Jul 4, 2018

This confused me too, PR opened.

@aleksandra-malinowska
Copy link
Contributor

Closed via #1042

yaroslava-serdiuk pushed a commit to yaroslava-serdiuk/autoscaler that referenced this issue Feb 22, 2024
…_modules/k8s.io/api-0.27.4

Bump k8s.io/api from 0.27.3 to 0.27.4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants