15.3.1 Cluster Autoscaler 介绍
Cluster Autoscaler 负责在由于节点资源不足,而无法调度某 pod 到己有节点时,自动部署新节点 。 它也会在节点段时间使用率低下的情况下下线节点。
从云端基础架构请求新节点
Cluster Autoscal er 通过检查可用的节点分组来确定是否有至少 一 种节点类型能容纳未被调度的 pod 。

归还节点
Cluster Autoscaler 通过监控所有节点上请求的 CPU 与内存来 实 现这一 点。
- 只有当 C luster Autoscaler 知道节点上运行的 pod 能够重新调度到其他节点 , 该节点才会被归还 。

15.3.2 启用 Cluster Autoscaler

15.3.3 限制集群缩容时的服务干扰
Kubemetes 可以指定下线等操作时 需要保持 的最少 pod 数量
- podDisruptionBudget 资源
创建 podDisruptionBudget 资源:

查看 podDisruptionBudget yaml 文件:

