From f7df56ca8ffc24ec687ccd8bbdb468cedbcfd3ed Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Tue, 18 Feb 2020 16:33:41 +0100 Subject: [PATCH] Document how to scale up/down deployments in openshift Signed-off-by: Pierre-Yves Chibon --- scale_up_or_down_deployment.md | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 scale_up_or_down_deployment.md diff --git a/scale_up_or_down_deployment.md b/scale_up_or_down_deployment.md new file mode 100644 index 0000000..64fbe01 --- /dev/null +++ b/scale_up_or_down_deployment.md @@ -0,0 +1,26 @@ +# How to scale up/down a deployment in openshift? + +* Log into os-master01 (prod or stg depending on what you want) + +* Retrieve the list of projects if you don't know how it's named +``` +oc projects +``` + +Find there the one of interest + +* Get its deployments +``` +oc -n get dc +``` + +This will return you the different deployments in the project. +Find the name of interest + +* Scale the deployment up/down +``` +oc -n scale dc/ --replicas= +``` + +If you do not want any running pods, simply use ``--replicas=0`` +