【发布时间】:2021-03-09 17:05:26
【问题描述】:
在我的 1 个节点 AKS 中,我部署了多个作业资源(种类:作业),这些资源在任务完成后终止。我已启用 Cluster Autoscaler 在太多作业消耗第一个节点内存时添加第二个节点,但是在由于内存不足而无法创建作业/pod 后它会横向扩展。
在我的工作 yaml 中,我还定义了资源内存限制和请求。
是否有可能将 Cluster Autoscaler 配置为在达到某个内存阈值(例如,节点内存的 70%)时主动向外扩展,而不仅仅是在它无法部署作业/pod 时?
【问题讨论】:
-
恐怕不可能。 ClusterAutosclaer 会在以下情况下调整 Kubernetes 集群的大小: -
there are pods that failed to run in the cluster due to insufficient resources.和 -there are nodes in the cluster that have been underutilized for an extended period of time and their pods can be placed on other existing nodes.我稍后会在回答中进一步解释。
标签: kubernetes azure-aks