Document how to scale up/down deployments in openshift
Signed-off-by: Pierre-Yves Chibon <pingou@pingoured.fr>
This commit is contained in:
parent
8be806683e
commit
f7df56ca8f
1 changed files with 26 additions and 0 deletions
26
scale_up_or_down_deployment.md
Normal file
26
scale_up_or_down_deployment.md
Normal file
|
@ -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 <project name> get dc
|
||||
```
|
||||
|
||||
This will return you the different deployments in the project.
|
||||
Find the name of interest
|
||||
|
||||
* Scale the deployment up/down
|
||||
```
|
||||
oc -n <project name> scale dc/<deployment name> --replicas=<number of pods desired>
|
||||
```
|
||||
|
||||
If you do not want any running pods, simply use ``--replicas=0``
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue