Control plane configuration options for Nutanix
You can update your control plane machines to reflect changes in your infrastructure or environment by editing values in the control plane machine set specification.
When you save an update to the control plane machine set, the Control Plane Machine Set Operator updates the control plane machines according to your configured update strategy. For more information, see "Updating the control plane configuration".
The following example YAML snippets show provider specification and failure domain configurations for a Nutanix cluster.
Sample Nutanix provider specification
You can update your control plane machines to reflect changes in your underlying infrastructure by editing values in the control plane machine set provider specification.
The following example YAML illustrates a valid configuration for a Nutanix cluster.
Note
When you create a control plane machine set for an existing cluster, the provider specification must match the providerSpec configuration in the control plane machine custom resource (CR) that the installation program creates.
In the following example, the <cluster_id> string is the infrastructure ID.
The infrastructure ID matches the cluster ID that the installation program used during cluster provisioning.
If you have the OpenShift CLI (oc) installed, you can obtain the infrastructure ID by running the following command:
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster
providerSpec valuesapiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
metadata:
name: cluster
namespace: openshift-machine-api
spec:
# ...
template:
# ...
spec:
providerSpec:
value:
apiVersion: machine.openshift.io/v1
bootType: ""
categories:
- key: <category_name>
value: <category_value>
cluster:
type: uuid
uuid: <cluster_uuid>
credentialsSecret:
name: nutanix-credentials
image:
name: <cluster_id>-rhcos
type: name
kind: NutanixMachineProviderConfig
memorySize: 16Gi
metadata:
creationTimestamp: null
project:
type: name
name: <project_name>
subnets:
- type: uuid
uuid: <subnet_uuid>
systemDiskSize: 120Gi
userDataSecret:
name: master-user-data
vcpuSockets: 8
vcpusPerSocket: 1
where:
spec.template.spec.providerSpec.value.bootType-
Specifies the boot type that the control plane machines use. For more information about boot types, see Understanding UEFI, Secure Boot, and TPM in the Virtualized Environment (Nutanix documentation).
Valid values are
Legacy,SecureBoot, orUEFI. The default isLegacy.Note
You must use the
Legacyboot type in OpenShift Container Platform 4.19. spec.template.spec.providerSpec.value.categories-
Specifies one or more Nutanix Prism categories to apply to control plane machines. This stanza requires
keyandvalueparameters for a category key-value pair that exists in Prism Central. For more information about categories, see Category management. spec.template.spec.providerSpec.value.cluster-
Specifies a Nutanix Prism Element cluster configuration. In this example, the cluster type is
uuid, so there is auuidstanza.Note
If the cluster uses a failure domain, configure this parameter in the failure domain. If you specify this value in the provider specification when using a failure domain, the Control Plane Machine Set Operator ignores it and uses the value in the failure domain.
spec.template.spec.providerSpec.value.credentialsSecret-
Specifies the secret name for the cluster. Do not change this value.
spec.template.spec.providerSpec.value.image-
Specifies the path to the source image for the disk.
spec.template.spec.providerSpec.value.kind-
Specifies the cloud provider platform type. Do not change this value.
spec.template.spec.providerSpec.value.memorySize-
Specifies the memory allocated for the control plane machines.
spec.template.spec.providerSpec.value.project-
Specifies the Nutanix project that you use for your cluster. In this example, the project type is
name, so there is anamestanza. spec.template.spec.providerSpec.value.subnets-
Specify one or more Prism Element subnet objects. In this example, the subnet type is
uuid, so there is auuidstanza. A maximum of 32 subnets for each Prism Element failure domain in the cluster is supported.Important
Do not remove the original subnet, which hosts the API server and ingress server, from the cluster.
The CIDR IP address prefix for one of the specified subnets must contain the virtual IP addresses that the OpenShift Container Platform cluster uses. All subnet UUID values must be unique.
Note
If the cluster uses a failure domain, configure this parameter in the failure domain. If you specify this value in the provider specification when using a failure domain, the Control Plane Machine Set Operator ignores it and uses the value in the failure domain.
spec.template.spec.providerSpec.value.systemDiskSize-
Specifies the VM disk size for the control plane machines.
spec.template.spec.providerSpec.value.userDataSecret-
Specifies the control plane user data secret. Do not change this value.
spec.template.spec.providerSpec.value.vcpuSockets-
Specifies the number of vCPU sockets allocated for the control plane machines.
spec.template.spec.providerSpec.value.vcpusPerSocket-
Specifies the number of vCPUs for each control plane vCPU socket.
Failure domains for Nutanix clusters
To add or update the failure domain configuration on a Nutanix cluster, you must make coordinated changes to several resources. The following actions are required:
-
Modify the cluster infrastructure custom resource (CR).
-
Modify the cluster control plane machine set CR.
-
Modify or replace the compute machine set CRs.
For more information, see "Adding failure domains to an existing Nutanix cluster" in the Post-installation configuration content.