<p>I have deployed an application in k8s cluster with 8 replicas. but how to ensure that there will be at least 3 pods always running during rolling update, can anyone please suggest a solution ?</p>
<p>Thanks in advance.</p>

<p>you can set the required values on <code>maxSurge</code> and <code>maxUnavailable</code></p>
<pre><code>  strategy:
    rollingUpdate:
       maxSurge: 25%
       maxUnavailable: 50%
    type: RollingUpdate
</code></pre>
<p>setting <code>maxUnavailable</code> to 50% will make sure that you always have 4 pods running.</p>
