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.

1 Answer 1


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

oc scale deploy name_of_deployment--replicas=2

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.