kubernetesdigital-oceanscalinghorizontal-scaling

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

  • 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