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
|
|
|
|
|
|
2025-03-17 08:42:39 +01:00
|
|
|
$ 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
|
|
|
|
|
----
|