1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/deployments-scaling-manually.adoc
2023-10-30 10:13:25 -04:00

26 lines
832 B
Plaintext

// Module included in the following assemblies:
//
// * applications/deployments/managing-deployment-processes.adoc
:_mod-docs-content-type: PROCEDURE
[id="deployments-scaling-manually_{context}"]
= Scaling manually
In addition to rollbacks, you can exercise fine-grained control over the number of replicas by manually scaling them.
[NOTE]
====
Pods can also be auto-scaled using the `oc autoscale` command.
====
.Procedure
. To manually scale a `DeploymentConfig` object, use the `oc scale` command. For example, the following command sets the replicas in the `frontend` `DeploymentConfig` object to `3`.
+
[source,terminal]
----
$ oc scale dc frontend --replicas=3
----
+
The number of replicas eventually propagates to the desired and current state of the deployment configured by the `DeploymentConfig` object `frontend`.