


// Module included in the following assemblies:
//
// * nodes/nodes/rosa-managing-worker-nodes.adoc

[id="rosa-adding-instance-types_{context}"]
= Adding instance types


After a machine pool is created, the instance type cannot be changed. To add a different instance type for worker nodes, you must create a new machine pool for the additional instance type.

.Procedure

. To add an instance type with a new machine pool, enter the following command:
+
[source,terminal]
----
$ rosa create machinepool --cluster=<cluster-name> <machinepool_ID> --instance-type=<type>
----
+
This example creates a new machine pool with the instance type `m5.2x.large`, 2 replicas, and labels on a cluster named `mycluster`:
+
[source,terminal]
----
$ rosa create machinepool --cluster=mycluster db-nodes-large-mp --replicas=2 --labels=app=db,tier=backend --instance-type=m5.2xlarge
----
+
[NOTE]
====
For a complete list of supported instance types, see the _Policies and Service Definition_.
====

. To verify that the machine pool was created with the instance type, enter the following command:
+
[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
db-nodes-mp         No            2           m5.xlarge      app=db, tier=backend            us-east-1a
db-nodes-large-mp   No            2           m5.2xlarge     app=db, tier=backend            us-east-1a
----
