2

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.

2

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, privacy policy and cookie policy

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