On VMware vSphere infrastructure, the cluster-wide infrastructure Custom Resource Definition (CRD), infrastructures.config.openshift.io, defines failure domains for your cluster.
The providerSpec in the ControlPlaneMachineSet custom resource (CR) specifies names for failure domains that the control plane machine set uses to ensure control plane nodes are deployed to the appropriate failure domain.
A failure domain is an infrastructure resource made up of a control plane machine set, a vCenter data center, vCenter datastore, and a network.
By using a failure domain resource, you can use a control plane machine set to deploy control plane machines on separate clusters or data centers.
A control plane machine set also balances control plane machines across defined failure domains to provide fault tolerance capabilities to your infrastructure.
|
|
If you modify the ProviderSpec configuration in the ControlPlaneMachineSet CR, the control plane machine set updates all control plane machines deployed on the primary infrastructure and each failure domain infrastructure.
|
Sample VMware vSphere failure domain values
apiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
metadata:
name: cluster
namespace: openshift-machine-api
spec:
# ...
template:
# ...
machines_v1beta1_machine_openshift_io:
failureDomains: (1)
platform: VSphere
vsphere: (2)
- name: <failure_domain_name_1>
- name: <failure_domain_name_2>
# ...
| 1 |
Specifies the vCenter location for OKD cluster nodes. |
| 2 |
Specifies failure domains by name for the control plane machine set.
|
|
Each name field value in this section must match the corresponding value in the failureDomains.name field of the cluster-wide infrastructure CRD.
You can find the value of the failureDomains.name field by running the following command:
$ oc get infrastructure cluster -o=jsonpath={.spec.platformSpec.vsphere.failureDomains[0].name}
The name field is the only supported failure domain field that you can specify in the ControlPlaneMachineSet CR.
|
|
For an example of a cluster-wide infrastructure CRD that defines resources for each failure domain, see "Specifying multiple regions and zones for your cluster on vSphere."