docs/modules/howtos/pages/scale_up_or_down_deployment.adoc
Michal Konecny 1d458e6d8a Migrate howto repository to infra docs
It doesn't make much sense to have separate guides outside infra documentation.
So let's migrate https://pagure.io/fedora-infra/howtos to infra docs.

Signed-off-by: Michal Konecny <mkonecny@redhat.com>
2023-09-18 17:06:59 +02:00

556 B
Raw Permalink Blame History

  1. Log into os-master01 (prod or stg depending on what you want)

  2. Retrieve the list of projects if you dont know how its named

    oc projects
  3. Find the one of interest

    1. Get its deployments

      oc -n <project name> get dc

      This will return you the different deployments in the project.

    2. 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