在 Azure K8s 服务中,您可以扩展节点池,但只有我们定义最小和最大节点。 当我检查节点池规模集规模设置时,我发现它设置为手动。 因此,我假设节点池自动缩放不依赖于所属的规模集,但我想知道,我们是否可以只依赖具有多个指标角色的规模集自动缩放,而不是非常有限的节点池规模设置?
最佳答案
AKS 自动缩放的工作方式与 VMSS 自动缩放略有不同。
来自official docs :
The cluster autoscaler watches for pods that can't be scheduled on nodes because of resource constraints. The cluster then automatically increases the number of nodes.
AKS 自动缩放器与控制平面和 kube 调度器紧密耦合,因此它考虑了资源请求和限制,这是比 VMSS 自动缩放器(针对 k8s 工作负载)更好的缩放方法,无论如何都不支持 VMSS 自动缩放器阿克斯:
The cluster autoscaler is a Kubernetes component. Although the AKS cluster uses a virtual machine scale set for the nodes, don't manually enable or edit settings for scale set autoscale in the Azure portal or using the Azure CLI.
关于Azure AKS 自动缩放与所属缩放集自动缩放,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/70957910/