<p>I want to increase the number of pods in kubernetes for which I'm trying with the following commands but which gives an error Error from server (NotFound): deployments.apps  not found</p>
<pre><code>kubectl scale deployment &lt;pod&gt; --replicas=4
</code></pre>

Srikanth Aawula
<p>You can increase/decrease the number of Pods in a deployment using:</p>
<pre><code># To kill all pods in a deployment
kubectl scale deploy &lt;deployment-name&gt; --replicas=0

# To set the number of pods
kubectl scale deploy &lt;deployment-name&gt; --replicas=3
</code></pre>
