mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
This commit break long command-line prompts into multiple lines so that the command is visible without scrolling.
40 lines
1.1 KiB
Plaintext
40 lines
1.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * hosted_control_planes/hcp-deploy-virt.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="hcp-virt-scale-nodpool_{context}"]
|
|
= Scaling a node pool
|
|
|
|
You can manually scale a node pool by using the `oc scale` command.
|
|
|
|
.Procedure
|
|
|
|
. Run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
NODEPOOL_NAME=${CLUSTER_NAME}-work
|
|
NODEPOOL_REPLICAS=5
|
|
|
|
$ oc scale nodepool/$NODEPOOL_NAME --namespace clusters \
|
|
--replicas=$NODEPOOL_REPLICAS
|
|
----
|
|
|
|
. After a few moments, enter the following command to see the status of the node pool:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ oc --kubeconfig $CLUSTER_NAME-kubeconfig get nodes
|
|
----
|
|
+
|
|
.Example output
|
|
[source,terminal]
|
|
----
|
|
NAME STATUS ROLES AGE VERSION
|
|
example-9jvnf Ready worker 97s v1.27.4+18eadca
|
|
example-n6prw Ready worker 116m v1.27.4+18eadca
|
|
example-nc6g4 Ready worker 117m v1.27.4+18eadca
|
|
example-thp29 Ready worker 4m17s v1.27.4+18eadca
|
|
example-twxns Ready worker 88s v1.27.4+18eadca
|
|
---- |