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.

1 Answer 1

4

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

oc scale deploy name_of_deployment--replicas=2
1

Your Answer

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

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