3

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.

user16571
  • 71
  • 1
  • 5

1 Answers1

4

found the issue, instead of 'dc' need to use 'deploy'

oc scale deploy name_of_deployment--replicas=2
user16571
  • 71
  • 1
  • 5