mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
47 lines
1.7 KiB
Plaintext
47 lines
1.7 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-mixing-node-types_{context}"]
|
|
= Mixing node types
|
|
|
|
You can also mix different worker node machine types in the same cluster by using new machine pools. You cannot change the node type of a machine pool once it is created, but you can create a new machine pool with different nodes by adding the `--instance-type` flag.
|
|
|
|
. For example, to change the database nodes to a different node type, run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa create machinepool --cluster=<cluster-name> --name=<mp-name> --replicas=<number-nodes> --labels='<key=pair>' --instance-type=<type>
|
|
----
|
|
+
|
|
.Example input
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa create machinepool --cluster=my-rosa-cluster --name=db-nodes-large-mp --replicas=2 --labels='app=db','tier=backend' --instance-type=m5.2xlarge
|
|
----
|
|
|
|
. To see all the link:https://docs.openshift.com/rosa/rosa_architecture/rosa_policy_service_definition/rosa-instance-types.html[instance types available], run the following command:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa list instance-types
|
|
----
|
|
|
|
. To make step-by-step changes, use the `--interactive` flag:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa create machinepool -c <cluster-name> --interactive
|
|
----
|
|
+
|
|
image::cloud-experts-getting-started-managing-mp-interactive.png[]
|
|
|
|
. Run the following command to list the machine pools and see the new, larger instance type:
|
|
+
|
|
[source,terminal]
|
|
----
|
|
$ rosa list machinepools -c <cluster-name>
|
|
----
|
|
+
|
|
image::cloud-experts-getting-started-managing-large-mp.png[] |