<p>Found the issue, instead of 'dc' need to use 'deploy'</p>
<pre class="lang-bash prettyprint-override"><code>oc scale deploy &lt;name of deployment&gt; --replicas=2
</code></pre>

CC BY-SA 4.0
2019-09-02T16:14:40.337Z
i made a [tutorial](https://github.com/ocd-scm/ocd-meta/wiki/Short-Tutorial:-Git-Driven-Deployments-On-Minishift) that showed scaling up by pushing config into git to have it update a deployment. here is a [video of how that works](https://www.loom.com/share/a321695dcf2146efa4599cae358d3a4c).
simbo1905
CC BY-SA 4.0
2019-08-14T18:15:47.467Z
2024-08-08T16:19:21.880Z
2024-08-08T16:19:21.880Z
user16571
<p>I am new to Openshift , and want know how to change the number of pods of  specific deployment from <code>oc</code> command line.</p>

<p>I tried to do:</p>

<p>oc scale dc name_of_deployment--replicas=2</p>

<p>Error from server (NotFound): deploymentconfigs.apps.openshift.io "name_of_deployment" not found</p>

<p>My deployments were installed with helm, if i do</p>

<pre><code>oc  get dc
</code></pre>

<p>I am getting some other deployment but not the one that I want to scale.</p>

<p>Note: The deployment that I want to delete is running without any issue. </p>

<openshift>
Scale number of pods in OpenShift from oc command line
user16571
# Scale number of pods in OpenShift from oc command line

(Asked by: username_0 on 2019-08-14)

I am new to Openshift , and want know how to change the number of pods of  specific deployment from oc command line.
I tried to do:
oc scale dc name_of_deployment--replicas=2
Error from server (NotFound): deploymentconfigs.apps.openshift.io "name_of_deployment" not found
My deployments were installed with helm, if i do
oc  get dc

I am getting some other deployment but not the one that I want to scale.
Note: The deployment that I want to delete is running without any issue.

**Tags:** openshift


---

## 1 answers

### Answer by username_0 on 2019-08-14. Score: 5

Found the issue, instead of 'dc' need to use 'deploy'
oc scale deploy  --replicas=2

> **Comments:**
> **username_1**: i made a [tutorial](https://github.com/ocd-scm/ocd-meta/wiki/Short-Tutorial:-Git-Driven-Deployments-On-Minishift) that showed scaling up by pushing config into git to have it update a deployment. here is a [video of how that works](https://www.loom.com/share/a321695dcf2146efa4599cae358d3a4c).  

---

