'Can a Kubernetes autoscaler scale based on disk usage?

Im looking to scale my pods/nodes based on disk space. Is it possible? I see that i can scale based on cpu or memory, but how can i scale based on disk usage?



Solution 1:[1]

Yes, you can use a tool named Keda, basically, it gives you the option to scale based on anything.

Here is an example of scaling based on the sum of HTTP requests to your service; Keda will take the number directly from prometheus.

So yes you can scale pods based on disk space if you know which metrics to use

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Faramarz