Restart an Openshift deployment or deployment config

Tags:  Openshift

The easiest way to restart is reducing the number of pods to zero and increase again up to the desired pod count:

oc get deployment thingsandcodeDeployment   # Shows the current number of pods

oc scale deployment thingsandcodeDeployment --replicas=0    # Stops the deployment
oc scale deployment thingsandcodeDeployment --replicas=2    # Starts new pods for deployment


Sergio Monedero

I am excited to share my knowledge and insights on programming and devops through this personal website. I am a lifelong learner with a passion for technology, and I enjoy staying up-to-date on the latest industry trends.

Keep in touch with Me: SergioCoder@LinkedIn | Branyac@Github