<p>I'm very new to Kubernetes, I have deployed a cluster on Kubernetes. Created a deployment and set POD's count to 2. I didn't create HPA for this deployment.</p>
<p>I'm using Google Cloud for this. I enabled autoscaling for the cluster. min is 2 and max is 30.</p>
<p>I got the <strong>OOMKilled</strong> error in my deployment.</p>
<p>So the question is</p>
<p>So only HPA can increase/decrease PODS count am I right ??. In that case, HPA based on memory and CPU is a must and should for every deployment.</p>
<p>Please correct me if I'm wrong.</p>

Rams
<p>You can use <code>kubectl</code> to change the number of pods running:</p>
<p><code>kubectl scale deployment &lt;DEPLOYMENT NAME&gt; --replicas=&lt;#PODS&gt;</code>
<br>
<code>kubectl scale deployment student-app --replicas=2</code></p>
<p>You can find more info at the <a href="https://kubernetes.io/docs/reference/generated/kubectl/kubectl-commands#scale" rel="noreferrer">docs page</a></p>
