1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-05 21:46:22 +01:00
Files
openshift-docs/modules/rosa-adding-instance-types.adoc

62 lines
2.2 KiB
Plaintext

// Module included in the following assemblies:
//
// * nodes/nodes/rosa-managing-worker-nodes.adoc
:_content-type: PROCEDURE
[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
ifdef::openshift-rosa[]
. 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
----
endif::[]
ifdef::openshift-dedicated[]
. From the {cluster-manager-url}, navigate to the *Clusters* page and select the cluster that you want to configure.
. On the selected cluster, select the *Machine pools* tab.
. Click *Add a machine pool*.
. Select a *Worker node instance type*.
. Select the number nodes you want to add to the machine pool using the *Worker node count* field.
. Optional. Under *Node labels*, add labels to the *Key* and *Value* fields.
. Select *Add machine pool* to create a machine pool and save these changes.
endif::[]