Answers: <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>
  
Answers: CC BY-SA 4.0
Answers: 2019-09-02T16:14:40.337Z
Answers: 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).
Answers: simbo1905
Answers: CC BY-SA 4.0
Answers: 2019-08-14T18:15:47.467Z
Answers: 2024-08-08T16:19:21.880Z
Answers: 2024-08-08T16:19:21.880Z
Answers: user16571
Body: <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>
  
Tags: <openshift>
Title: Scale number of pods in OpenShift from oc command line
UserDisplayName: user16571
ThreadText: # 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'
  
  ```bash
  oc scale deploy <name of deployment> --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).  
  
  ---
  
  