-
Notifications
You must be signed in to change notification settings - Fork 40
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
Feature Request - native Cluster Autoscaler support #180
Comments
Thanks @backjo, good idea.. though I think since this is more of a convenience feature, it might be more appropriate as an annotation vs. spec which refers to more concrete configuration.
Then, when we derive the tags to add to the ASG we can check for this annotation and add the relevant tags:
Can you explain what is the purpose of the other two?
|
BTW, you can also use the configmap default values to achieve this for all IGs in the cluster: |
@eytan-avisror totally agree on the annotation - good call.
^ These tags are meant to inform cluster autoscaler about what taints and labels exist on the ASG. It will derive these automatically if the labels/taints are on a node in the ASG already, but if you want to be able to scale from 0 nodes, it needs these tags to know whether or not to scale the ASG. |
@backjo
From docs:
The other tags for label/taint are used by cluster-autoscaler as 'extra hints' - I am trying to understand the exact use-case but this is what the docs mention:
We can probably add relevant tags according to taints & labels provided in spec, but am still trying to understand why this is needed if you enable cluster-autoscaler per ASG - is this for use cases around mixedInstances / launch template? |
The hint tags are really only needed for instance groups that have 0 minimum nodes. See kubernetes/autoscaler#2418 for more context. The use case I'm playing around with is adding these IGs for several namespaces and having them set to 0 minimum nodes - and only scaling up once workloads are deployed in those namespaces. |
Got it.. makes sense. |
Is this a BUG REPORT or FEATURE REQUEST?:
Feature Request
What happened:
It would be nice if cluster autoscaler was supported natively.
Today, registering instance groups with cluster autoscaler can be achieved through the manual addition of Tags in the CR, but this could be cumbersome for users to add to each and every CR - especially since most of the information is already present in the CR.
Proposal
Add a new field like "useClusterAutoscaler" to the InstanceGroup defintion which, if set, would automatically tag the ASG with the following tags.
The text was updated successfully, but these errors were encountered: