Kubernetes Autoscaler可以根据磁盘使用量表吗?
我希望根据磁盘空间扩展我的豆荚/节点。是否可以?我看到我可以根据CPU或内存进行扩展,但是如何根据磁盘用法进行扩展?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,您可以使用名为 keda 的工具,基本上,它为您提供了根据任何内容进行扩展的选项。
在这里是基于缩放的示例,基于http请求的总和。 Keda将直接从Prometheus获取数字。
因此,是的,如果您知道要使用的指标
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