You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* xref:../../post_installation_configuration/adding-nutanix-failure-domains.adoc#adding-failure-domains-to-an-existing-nutanix-cluster[Adding failure domains to an existing Nutanix cluster]
97
+
92
98
[id="cpmso-sample-yaml-vsphere_{context}"]
93
99
== Sample YAML for configuring VMware vSphere clusters
* xref:../../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-yaml-failure-domain-azure_cpmso-configuration[Sample Microsoft Azure failure domain configuration]
25
25
26
+
* xref:../../post_installation_configuration/adding-nutanix-failure-domains.adoc#adding-failure-domains-to-an-existing-nutanix-cluster[Adding failure domains to an existing Nutanix cluster]
* xref:../../post_installation_configuration/adding-nutanix-failure-domains.adoc#adding-failure-domains-to-an-existing-nutanix-cluster[Adding failure domains to an existing Nutanix cluster]
@@ -40,9 +39,5 @@ The control plane machine set concept of a failure domain is analogous to existi
40
39
|X
41
40
|link:https://docs.openstack.org/nova/2023.2/admin/availability-zones.html[OpenStack Nova availability zones] and link:https://docs.openstack.org/cinder/2023.2/admin/availability-zone-type.html[OpenStack Cinder availability zones]
42
41
|====
43
-
[.small]
44
-
--
45
-
1. Nutanix has a failure domain concept, but {product-title}{product-version} does not include support for this feature.
46
-
--
47
42
48
43
The failure domain configuration in the control plane machine set custom resource (CR) is platform-specific. For more information about failure domain parameters in the CR, see the sample failure domain configuration for your provider.
Copy file name to clipboardExpand all lines: modules/machineset-modifying.adoc
+16-14Lines changed: 16 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,8 @@ By default, the {product-title} router pods are deployed on compute machines.
19
19
Because the router is required to access some cluster resources, including the web console, do not scale the compute machine set to `0` unless you first relocate the router pods.
20
20
====
21
21
22
+
The output examples in this procedure use the values for an AWS cluster.
23
+
22
24
.Prerequisites
23
25
24
26
* Your {product-title} cluster uses the Machine API.
@@ -34,7 +36,7 @@ Because the router is required to access some cluster resources, including the w
. Scale the compute machine set to twice the number of replicas by running the following command:
80
+
. To create replacement machines with the new configuration, scale the compute machine set to twice the number of replicas by running the following command:
79
81
+
80
82
[source,terminal]
81
83
----
@@ -92,7 +94,7 @@ $ oc scale --replicas=4 \// <1>
92
94
$ oc get -n openshift-machine-api machines -l machine.openshift.io/cluster-api-machineset=<machine_set_name>
93
95
----
94
96
+
95
-
.Example output
97
+
.Example output for an AWS cluster
96
98
[source,text]
97
99
----
98
100
NAME PHASE TYPE REGION ZONE AGE
@@ -104,7 +106,7 @@ NAME PHASE TYPE REGION ZONE
104
106
+
105
107
When the new machines are in the `Running` phase, you can scale the compute machine set to the original number of replicas.
106
108
107
-
. Scale the compute machine set to the original number of replicas by running the following command:
109
+
. To remove the machines that were created with the old configuration, scale the compute machine set to the original number of replicas by running the following command:
* To verify that a machine created by the updated machine set has the correct configuration, examine the relevant fields in the CR for one of the new machines by running the following command:
* To verify that the compute machines without the updated configuration are deleted, list the machines that are managed by the updated compute machine set by running the following command:
120
129
+
121
130
[source,terminal]
122
131
----
123
132
$ oc get -n openshift-machine-api machines -l machine.openshift.io/cluster-api-machineset=<machine_set_name>
124
133
----
125
134
+
126
-
.Example output while deletion is in progress
135
+
.Example output while deletion is in progress for an AWS cluster
* To verify that a machine created by the updated machine set has the correct configuration, examine the relevant fields in the CR for one of the new machines by running the following command:
= Editing compute machine sets to implement failure domains
8
8
9
-
You can distribute compute machines across Nutanix failure domains by performing either of the following tasks:
10
-
11
-
* Modifying existing compute machine sets.
12
-
* Creating new compute machine sets.
13
-
14
-
The following procedure details how to distribute compute machines across failure domains by modifying existing compute machine sets. For more information on creating a compute machine set, see "Additional resources".
9
+
To distribute compute machines across Nutanix failure domains by using an existing compute machine set, you update the compute machine set with your configuration and then use scaling to replace the existing compute machines.
15
10
16
11
.Prerequisites
17
12
@@ -25,20 +20,32 @@ The following procedure details how to distribute compute machines across failur
. For each failure domain (`platformSpec.nutanix.failureDomains`), note the cluster's UUID, name, and subnet object UUID. These values are required to add a failure domain to a compute machine set.
25
+
29
26
. List the compute machine sets in your cluster by running the following command:
30
27
+
31
28
[source,terminal]
32
29
----
33
30
$ oc get machinesets -n openshift-machine-api
34
31
----
32
+
+
33
+
.Example output
34
+
[source,terminal]
35
+
----
36
+
NAME DESIRED CURRENT READY AVAILABLE AGE
37
+
<machine_set_name_1> 1 1 1 1 55m
38
+
<machine_set_name_2> 1 1 1 1 55m
39
+
----
40
+
35
41
. Edit the first compute machine set by running the following command:
. Scale the compute machine set to twice the number of replicas by running the following command:
114
+
115
+
. To create replacement machines with the new configuration, scale the compute machine set to twice the number of replicas by running the following command:
<1> For example, if the original number of replicas in the compute machine set is `2`, scale the replicas to `4`.
124
+
103
125
. List the machines that are managed by the updated compute machine set by running the following command:
104
126
+
105
127
[source,terminal]
106
128
----
107
-
$ oc get -n openshift-machine-api machines -l machine.openshift.io/cluster-api-machineset=<machine_set_name>
129
+
$ oc get -n openshift-machine-api machines -l machine.openshift.io/cluster-api-machineset=<machine_set_name_1>
108
130
----
109
131
+
110
132
When the new machines are in the `Running` phase, you can scale the compute machine set to the original number of replicas.
111
-
. Scale the compute machine set to the original number of replicas by running the following command:
133
+
134
+
. To remove the machines that were created with the old configuration, scale the compute machine set to the original number of replicas by running the following command:
0 commit comments