<p>I'm looking for clarification regarding HPA in my GKE cluster. I've read these docs <a href="https://cloud.google.com/kubernetes-engine/docs/how-to/horizontal-pod-autoscaling" rel="nofollow noreferrer">https://cloud.google.com/kubernetes-engine/docs/how-to/horizontal-pod-autoscaling</a> but I wanted to know, by setting the <code>minReplicas</code> and <code>maxReplicas</code> are these the min and max values across all nodes in the cluster or is this the min and max per zone?</p>

<p>For instance if I have a cluster with 3 zones and 2 nodes per zone, and I set <code>minReplicas=1</code> and <code>maxReplicas=3</code> what will be the min and max number of pods in the entire cluster? Assuming the HPA is operating on a deployment that creates a single node.</p>

Daniel Kobe
<blockquote>
  <p><code>minReplicas=1</code> and <code>maxReplicas=3</code> what will be the min and max number of
  pods in the entire cluster?</p>
</blockquote>

<p>When you setup HPA, you set values per Deployment, so that is values of minimum and maximum number of pods for a Deployment which you manage by HPA.</p>

<p>Simply speaking, HPA will update a value of a <code>replica</code> parameter in your deployment. Pods distribution is a responsibility of the scheduler and it's behaviour will be absolutely the same as if you will just scale a number of replicas manually.</p>
