<p>I am a newbie on Ops and need to update through Lens the HPA configuration like:</p>
<p>From:</p>
<pre><code>  minReplicas: 6
  maxReplicas: 10
</code></pre>
<p>To:</p>
<pre><code>  minReplicas: 4
  maxReplicas: 16
</code></pre>
<p>My doubt is if the PODs will be recreated or not once we have 8 instances running.</p>

Luciano Borges
<blockquote>
<p>In Kubernetes, a HorizontalPodAutoscaler automatically updates a workload resource (such as a Deployment or StatefulSet), with the aim of automatically scaling the workload to match demand.</p>
</blockquote>
<p>The HorizontalPodAutoscaler is implemented as a Kubernetes API <code>resource</code> and a <code>controller</code>.</p>
<p>By configuring <code>minReplicas</code> and <code>maxReplicas</code> you are configuring the API resource.</p>
<p><strong>In this case, the HPA controller does not recreate running pods. And it does not scale up/down the workload if the number of currently running replicas is within the new min/max.</strong></p>
<p>The HPA controller then continues to monitor the load:</p>
<ul>
<li>If the load decreases, and the number of Pods is above the configured minimum, the HorizontalPodAutoscaler instructs the workload resource (the Deployment, StatefulSet, or other similar resource) to scale down.</li>
<li>If the load increases, and the number of Pods is below the configured maximum, the HorizontalPodAutoscaler instructs the workload resource (the Deployment, StatefulSet, or other similar resource) to scale up.</li>
</ul>
<p>See more info about <a href="https://kubernetes.io/docs/tasks/run-application/horizontal-pod-autoscale/" rel="nofollow noreferrer">Horizontal Pod Autoscaling here</a>.</p>
