1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 12:46:18 +01:00
Files
openshift-docs/modules/hcp-virt-scale-nodepool.adoc

40 lines
1.1 KiB
Plaintext
Raw Permalink Normal View History

2024-08-20 13:03:51 -04:00
// 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
2024-08-20 13:03:51 -04:00
----
. 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
----