I have workloads that are intermittent and heterogeneous. Sometimes a k8s job will be scheduled to run on a pod that needs 400m memory, another time it’ll be a job that requires 24g of memory. What I want to have happen is for the autoscaler to automatically spin up a droplet (node) that’ll be able to run that pod.
Most of the time there’ll be no jobs, so it doesn’t make sense to have nodes running at those times.
It’s fine if takes a minute or two for a node to come up for the job to run.
It’s fine if the node stays up for some minimum amount of time before it shuts off (e.g. an hour).
Is there anyway to have the autoscaler scale a node group to 0?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
Hi @offbynull!
Unfortunately, it is not currently supported to set the autoscaling of a nodepool to 0.
You can see this mentioned in our product docs here How to Enable the Cluster Autoscaler for a DigitalOcean Kubernetes Cluster
Minimum Nodes: Determines the smallest size the cluster will be allowed to “scale down” to; must be no less than 1 and no greater than Maximum Nodes.
That being said, there could be a way to automate this yourself using the DO API! See the API docs for controlling node count here: https://docs.digitalocean.com/reference/api/api-reference/#operation/update_kubernetes_node_pool
Hope this was helpful!
Best,
John
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.