<p>We are having 1000's of pods running for our application. Due to some reason we need to restart 100's of pods.</p>
<p>Is there any way we can do it in kubernetes using kubectl or any other tool. Please advice. It should be pure pod restart.</p>

mcbss
<p>One way</p>
<pre><code>kubectl scale deploymennt &lt;your-deployment-goes-here&gt; --replicas=0
</code></pre>
<p>and then</p>
<pre><code>kubectl scale deploymennt &lt;your-deployment-goes-here&gt; --replicas=1000
</code></pre>
<p>Another way:</p>
<p>Write a script that:</p>
<ol>
<li>will acquire a list of all active pods that belong to specific deployment</li>
<li>issue kubectl delete pod  in a loop</li>
</ol>
<p>Yet another way (works if your pods belong to a dedicated namespace 'foo'):</p>
<pre><code>kubectl delete --all pods --namespace=foo
</code></pre>
