Skip to content

Commit c8e76b1

Browse files
authored
Merge pull request #62116 from eohartman/osdocs-5751
OSDOCS-5751: Configuring machine pool disk volume.
2 parents 682d067 + 65a7f4e commit c8e76b1

9 files changed

+114
-4
lines changed
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc
4+
5+
:_content-type: PROCEDURE
6+
[id="configuring_machine_pool_disk_volume_cli{context}"]
7+
= Configuring machine pool disk volume using the ROSA CLI
8+
9+
.Prerequisite for cluster creation
10+
11+
* You have the option to select the root disk sizing for the default machine pool during cluster installation.
12+
13+
.Procedure for cluster creation
14+
15+
* Run the following command when creating your OpenShift cluster for the desired root disk size:
16+
+
17+
[source,terminal]
18+
----
19+
$ rosa create cluster --worker-disk-size=<disk_size>
20+
----
21+
The value can be in GB, GiB, TB, or TiB. Replace '<disk_size>' with a numeric value and unit, for example '--worker-disk-size=200GiB'. You cannot separate the digit and the unit. No spaces are allowed.
22+
23+
.Prerequisite for machine pool creation
24+
25+
* You have the option to select the root disk sizing for the new machine pool after the cluster has been installed.
26+
27+
.Procedure for machine pool creation
28+
29+
. Scale up the cluster by executing the following command:
30+
+
31+
[source,terminal]
32+
----
33+
$ rosa create machinepool --cluster=<cluster_id> <1>
34+
--disk-size=<disk_size> <2>
35+
----
36+
<1> Specifies the ID or name of your existing OpenShift cluster
37+
<2> Specifies the worker node disk size. The value can be in GB, GiB, TB, or TiB. Replace '<disk_size>' with a numeric value and unit, for example '--disk-size=200GiB'. You cannot separate the digit and the unit. No spaces are allowed.
38+
. Confirm new machine pool disk volume size by logging into the AWS console and find the EC2 virtual machine root volume size.
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc
4+
5+
:_content-type: PROCEDURE
6+
ifdef::openshift-rosa[]
7+
[id="configuring_machine_pool_disk_volume_ocm{context}"]
8+
= Configuring machine pool disk volume using OpenShift Cluster Manager
9+
endif::openshift-rosa[]
10+
.Prerequisite for cluster creation
11+
* You have the option to select the node disk sizing for the default machine pool during cluster installation.
12+
13+
.Procedure for cluster creation
14+
15+
. From ROSA cluster wizard, navigate to Cluster settings.
16+
17+
. Navigate to *Machine pool* step.
18+
19+
. Select the desired *Root disk size*.
20+
21+
. Select *Next* to continue creating your cluster.
22+
23+
.Prerequisite for machine pool creation
24+
* You have the option to select the node disk sizing for the new machine pool after the cluster has been installed.
25+
26+
.Procedure for machine pool creation
27+
28+
. Navigate to {cluster-manager-url} and select your cluster.
29+
30+
. Navigate to *Machine pool tab*.
31+
32+
. Click *Add machine pool*.
33+
34+
. Select the desired *Root disk size*.
35+
36+
. Select *Add machine pool* to create the machine pool.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc
4+
5+
:_content-type: CONCEPT
6+
[id="configuring_machine_pool_disk_volume{context}"]
7+
= Configuring machine pool disk volume
8+
9+
Machine pool disk volume size can be configured for additional flexibility. The default disk size is 300 GiB. For cluster version 4.13 or earlier, the disk size can be configured to a minimum of 128 GiB to a maximum of 1 TiB. For cluster version 4.14 and later, the disk size can be configured to a minimum of 128 GiB to a maximum of 16 TiB.
10+
11+
You can configure the machine pool disk size for your cluster by using {cluster-manager} or the ROSA CLI (`rosa`).
12+
13+
[NOTE]
14+
====
15+
Existing cluster and machine pool node volumes cannot be resized.
16+
====
17+
18+
19+
[IMPORTANT]
20+
====
21+
The default disk size is 300 GiB. For cluster version 4.13 or earlier, the disk size can be configured to a minimum of 128 GiB to a maximum of 1 TiB. For cluster version 4.14 and later, the disk size can be configured to a minimum of 128 GiB to a maximum of 16 TiB.
22+
====

modules/creating-a-machine-pool-cli.adoc

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ $ rosa create machinepool --cluster=<cluster-name> \
2828
--taints=<key>=<value>:<effect>,<key>=<value>:<effect> \ <5>
2929
--use-spot-instances \ <6>
3030
--spot-max-price=0.5 <7>
31+
ifdef::openshift-rosa[]
32+
--disk-size=<disk_size> \ <8>
33+
endif::openshift-rosa[]
3134
----
3235
<1> Specifies the name of the machine pool. Replace `<machine_pool_id>` with the name of your machine pool.
3336
<2> Specifies the number of compute nodes to provision. If you deployed ROSA using a single availability zone, this defines the number of compute nodes to provision to the machine pool for the zone. If you deployed your cluster using multiple availability zones, this defines the number of compute nodes to provision in total across all zones and the count must be a multiple of 3. The `--replicas` argument is required when autoscaling is not configured.
@@ -36,6 +39,9 @@ $ rosa create machinepool --cluster=<cluster-name> \
3639
<5> Optional: Defines the taints for the machine pool. Replace `<key>=<value>:<effect>,<key>=<value>:<effect>` with a key, value, and effect for each taint, for example `--taints=key1=value1:NoSchedule,key2=value2:NoExecute`. Available effects include `NoSchedule`, `PreferNoSchedule`, and `NoExecute`.
3740
<6> Optional: Configures your machine pool to deploy machines as non-guaranteed AWS Spot Instances. For information, see link:https://aws.amazon.com/ec2/spot/[Amazon EC2 Spot Instances] in the AWS documentation. If you select *Use Amazon EC2 Spot Instances* for a machine pool, you cannot disable the option after the machine pool is created.
3841
<7> Optional: If you have opted to use Spot Instances, you can specify this argument to define a maximum hourly price for a Spot Instance. If this argument is not specified, the on-demand price is used.
42+
ifdef::openshift-rosa[]
43+
<8> Optional: Specifies the worker node disk size. The value can be in GB, GiB, TB, or TiB. Replace '<disk_size>' with a numeric value and unit, for example '--disk-size=200GiB'.
44+
endif::openshift-rosa[]
3945
+
4046
[IMPORTANT]
4147
====

modules/creating-a-machine-pool-ocm.adoc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ Alternatively, you can set your autoscaling preferences for the machine pool aft
7979
. If you did not enable autoscaling, select a compute node count:
8080
* If you deployed your cluster using a single availability zone, select a *Worker node count* from the drop-down menu. This defines the number of compute nodes to provision to the machine pool for the zone.
8181
* If you deployed your cluster using multiple availability zones, select a *Worker node count (per zone)* from the drop-down menu. This defines the number of compute nodes to provision to the machine pool per zone.
82-
82+
ifdef::openshift-rosa[]
83+
. Optional: Configure *Root disk size*.
84+
endif::openshift-rosa[]
8385
. Optional: Add node labels and taints for your machine pool:
8486
.. Expand the *Edit node labels and taints* menu.
8587
.. Under *Node labels*, add *Key* and *Value* entries for your node labels.
@@ -115,9 +117,9 @@ Your Amazon EC2 Spot Instances might be interrupted at any time. Use Amazon EC2
115117
====
116118
If you select *Use Amazon EC2 Spot Instances* for a machine pool, you cannot disable the option after the machine pool is created.
117119
====
118-
119120
. Click *Add machine pool* to create the machine pool.
120121

122+
121123
.Verification
122124

123125
* Verify that the machine pool is visible on the *Machine pools* page and the configuration is as expected.

modules/deleting-machine-pools-ocm.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ endif::openshift-rosa[]
2525
ifndef::openshift-rosa[]
2626
* You have created an {product-title} cluster.
2727
* The newly created cluster is in the ready state.
28-
endif::[]
28+
endif::openshift-rosa[]
2929

3030
.Procedure
3131
. From {cluster-manager-url}, navigate to the *Clusters* page and select the cluster that contains the machine pool that you want to delete.

modules/rosa-nodes-machine-pools-local-zones.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ I: Enabling interactive mode <1>
5656
? Enable autoscaling (optional): No <6>
5757
? Replicas: 2 <7>
5858
I: Fetching instance types <8>
59+
? disk-size (optional): <9>
5960
----
6061
+
6162
@@ -67,6 +68,7 @@ I: Fetching instance types <8>
6768
<6> Select yes to enable autoscaling or no to disable autoscaling.
6869
<7> Selects the number of machines for the machine pool. This number can be anywhere from 1 - 180.
6970
<8> Selects an instance type from the list. Only instance types that are supported in the selected Local Zone will appear.
71+
<9> Optional: Specifies the worker node disk size. The value can be in GB, GiB, TB, or TiB. Set a numeric value and unit, for example '200GiB'. You cannot separate the digit and the unit. No spaces are allowed.
7072
7173
. Provide the subnet ID to provision the machine pool in the Local Zone.
7274

modules/rosa-osd-node-label-about.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,3 @@
1111
A label is a key-value pair applied to a `Node` object. You can use labels to organize sets of objects and control the scheduling of pods.
1212

1313
You can add labels during cluster creation or after. Labels can be modified or updated at any time.
14-

rosa_cluster_admin/rosa_nodes/rosa-managing-worker-nodes.adoc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ include::_attributes/attributes-openshift-dedicated.adoc[]
55
:context: rosa-managing-worker-nodes
66
toc::[]
77

8+
9+
810
This document describes how to manage compute (also known as worker) nodes with {product-title} (ROSA).
911

1012
The majority of changes for compute nodes are configured on machine pools. A machine pool is a group of compute nodes in a cluster that have the same configuration, providing ease of management.
@@ -14,6 +16,9 @@ You can edit machine pool configuration options such as scaling, adding node lab
1416
include::modules/creating-a-machine-pool.adoc[leveloffset=+1]
1517
include::modules/creating-a-machine-pool-ocm.adoc[leveloffset=+2]
1618
include::modules/creating-a-machine-pool-cli.adoc[leveloffset=+2]
19+
include::modules/configuring-machine-pool-disk-volume.adoc[leveloffset=+1]
20+
include::modules/configuring-machine-pool-disk-volume-ocm.adoc[leveloffset=+2]
21+
include::modules/configuring-machine-pool-disk-volume-cli.adoc[leveloffset=+2]
1722

1823
[role="_additional-resources"]
1924
.Additional resources

0 commit comments

Comments
 (0)