关于Google Cloud Platform:Kubernetes GKE Horizo??ntalPodAutoscaler最小副本和最大副本是否在每个区域上工作?

Does Kubernetes GKE HorizontalPodAutoscaler min and max replicas work on a per zone basis?

我正在寻求有关GKE群集中HPA的说明。我已经阅读了这些文档https://cloud.google.com/kubernetes-engine/docs/how-to/horizo??ntal-pod-autoscaling,但我想知道,通过设置minReplicasmaxReplicas可以集群中所有节点的最小值和最大值,或者这是每个区域的最小值和最大值吗?

例如,如果我有一个群集,该群集具有3个区域,每个区域2个节点,并且设置了minReplicas=1maxReplicas=3,则整个群集中的最小和最大Pod数是多少?假设HPA在创建单个节点的部署上运行。


minReplicas=1 and maxReplicas=3 what will be the min and max number of
pods in the entire cluster?

设置HPA时,您将为每个Deployment设置值,因此该值是由HPA管理的Deployment的最小和最大Pod数。

简单来说,HPA将在您的部署中更新replica参数的值。 Pods分发是调度程序的责任,它的行为与您仅手动缩放多个副本的行为完全相同。