1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/learning-getting-learning-machine-pool-scaling-cli.adoc

62 lines
1.5 KiB
Plaintext

// Module included in the following assemblies:
//
// * rosa_learning/creating_cluster_workshop/learning-getting-started-managing-worker-nodes.adoc
:_mod-docs-content-type: PROCEDURE
[id="learning-getting-started-learning-machine-pool-scaling-cli_{context}"]
= Scaling worker nodes using the CLI
[role="_abstract"]
Edit a machine pool to scale the number of worker nodes in that specific machine pool by using {rosa-cli}.
.Procedure
. Run the following command to see the default machine pool that is created with each cluster:
+
[source,terminal]
----
$ rosa list machinepools --cluster=<cluster-name>
----
+
*Example output*:
+
[source,terminal]
----
ID AUTOSCALING REPLICAS INSTANCE TYPE LABELS TAINTS AVAILABILITY ZONES
Default No 2 m5.xlarge us-east-1a
----
. To scale the default machine pool out to a different number of nodes, run the following command:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=<cluster-name> --replicas=<number-nodes> <machinepool-name>
----
+
*For example*:
+
[source,terminal]
----
$ rosa edit machinepool --cluster=my-rosa-cluster --replicas 3 Default
----
. Run the following command to confirm that the machine pool has scaled:
+
[source,terminal]
----
$ rosa describe cluster --cluster=<cluster-name> | grep Compute
----
+
*For example*:
+
[source,terminal]
----
$ rosa describe cluster --cluster=my-rosa-cluster | grep Compute
----
+
*Example output*:
+
[source,terminal]
----
- Compute (Autoscaled): 2-4
- Compute (current): 2
----