https://vcenter.example.com/ui/app/tags/tag/urn:vmomi:InventoryServiceTag:208e713c-cae3-4b7f-918e-4051ca7d1f97:GLOBAL/permissions
You can enable or change the configuration of features for your control plane machines 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".
OKD adds a cluster-specific tag to each virtual machine (VM) that it creates. The installation program uses these tags to select the VMs to delete when uninstalling a cluster.
In addition to the cluster-specific tags assigned to VMs, you can configure a machine set to add up to 10 additional vSphere tags to the VMs it provisions.
You have access to an OKD cluster installed on vSphere using an account with cluster-admin permissions.
You have access to the VMware vCenter console associated with your cluster.
You have created a tag in the vCenter console.
You have installed the OpenShift CLI (oc).
Use the vCenter console to find the tag ID for any tag that you want to add to your machines:
Log in to the vCenter console.
From the Home menu, click Tags & Custom Attributes.
Select a tag that you want to add to your machines.
Use the browser URL for the tag that you select to identify the tag ID.
https://vcenter.example.com/ui/app/tags/tag/urn:vmomi:InventoryServiceTag:208e713c-cae3-4b7f-918e-4051ca7d1f97:GLOBAL/permissions
urn:vmomi:InventoryServiceTag:208e713c-cae3-4b7f-918e-4051ca7d1f97:GLOBAL
In a text editor, open the YAML file for an existing machine set or create a new one.
Edit the following lines under the providerSpec field:
apiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
# ...
spec:
template:
spec:
providerSpec:
value:
tagIDs: (1)
- <tag_id_value> (2)
# ...
| 1 | Specify a list of up to 10 tags to add to the machines that this machine set provisions. |
| 2 | Specify the value of the tag that you want to add to your machines.
For example, urn:vmomi:InventoryServiceTag:208e713c-cae3-4b7f-918e-4051ca7d1f97:GLOBAL. |
OKD clusters on VMware vSphere support adding up to 29 disks to the virtual machine (VM) controller.
|
Configuring vSphere data disks is a Technology Preview feature only. Technology Preview features are not supported with Red Hat production service level agreements (SLAs) and might not be functionally complete. Red Hat does not recommend using them in production. These features provide early access to upcoming product features, enabling customers to test functionality and provide feedback during the development process. For more information about the support scope of Red Hat Technology Preview features, see the following link: |
By configuring data disks, you can attach disks to VMs and use them to store data for etcd, container images, and other uses. Separating data can help avoid filling the primary disk so that important activities such as upgrades have the resources that they require.
|
Adding data disks attaches them to the VM and mounts them to the location that FCOS designates. |
You have administrator access to OpenShift CLI (oc) for an OKD cluster on vSphere.
In a text editor, open the YAML file for an existing machine set or create a new one.
Edit the following lines under the providerSpec field:
apiVersion: machine.openshift.io/v1
kind: ControlPlaneMachineSet
# ...
spec:
template:
machines_v1beta1_machine_openshift_io:
spec:
providerSpec:
value:
dataDisks: (1)
- name: "<disk_name>" (2)
provisioningMode: "<mode>" (3)
sizeGiB: 20 (4)
- name: "<disk_name>"
provisioningMode: "<mode>"
sizeGiB: 20
# ...
| 1 | Specify a collection of 1-29 data disk definitions. This sample configuration shows the formatting to include two data disk definitions. |
| 2 | Specify the name of the data disk.
The name must meet the following requirements:
|
| 3 | Specify the data disk provisioning method.
This value defaults to the vSphere default storage policy if not set.
Valid values are Thin, Thick, and EagerlyZeroed. |
| 4 | Specify the size of the data disk in GiB. The maximum size is 16384 GiB. |