|
1 | 1 | // Module included in the following assemblies: |
2 | 2 | // |
3 | | -// * machine_management/control-plane-machine-management.adoc |
| 3 | +// * machine_management/cpmso-configuration.adoc |
4 | 4 |
|
5 | 5 | :_content-type: REFERENCE |
6 | 6 | [id="cpmso-yaml-provider-spec-vsphere_{context}"] |
7 | 7 | = Sample vSphere provider specification |
8 | 8 |
|
9 | | -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` CR that is created by the installation program. You can omit any field that is set in the failure domain section of the CR. |
10 | | - |
11 | | -In the following example, `<cluster_id>` is the infrastructure ID that is based on the cluster ID that you set when you provisioned the cluster. If you have the OpenShift CLI installed, you can obtain the infrastructure ID by running the following command: |
12 | | - |
13 | | -[source,terminal] |
14 | | ----- |
15 | | -$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster |
16 | | ----- |
| 9 | +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` CR that is created by the installation program. |
17 | 10 |
|
18 | 11 | .Sample vSphere `providerSpec` values |
19 | 12 | [source,yaml] |
20 | 13 | ---- |
21 | | -
|
| 14 | +providerSpec: |
| 15 | + value: |
| 16 | + apiVersion: machine.openshift.io/v1beta1 |
| 17 | + credentialsSecret: |
| 18 | + name: vsphere-cloud-credentials <1> |
| 19 | + diskGiB: 120 <2> |
| 20 | + kind: VSphereMachineProviderSpec <3> |
| 21 | + memoryMiB: 16384 <4> |
| 22 | + metadata: |
| 23 | + creationTimestamp: null |
| 24 | + network: <5> |
| 25 | + devices: |
| 26 | + - networkName: <vm_network_name> |
| 27 | + numCPUs: 4 <6> |
| 28 | + numCoresPerSocket: 4 <7> |
| 29 | + snapshot: "" |
| 30 | + template: <vm_template_name> <8> |
| 31 | + userDataSecret: |
| 32 | + name: master-user-data <9> |
| 33 | + workspace: |
| 34 | + datacenter: <vcenter_datacenter_name> <10> |
| 35 | + datastore: <vcenter_datastore_name> <11> |
| 36 | + folder: <path_to_vcenter_vm_folder> <12> |
| 37 | + resourcePool: <vsphere_resource_pool> <13> |
| 38 | + server: <vcenter_server_ip> <14> |
22 | 39 | ---- |
| 40 | +<1> Specifies the secret name for the cluster. Do not change this value. |
| 41 | +<2> Specifies the VM disk size for the control plane machines. |
| 42 | +<3> Specifies the cloud provider platform type. Do not change this value. |
| 43 | +<4> Specifies the memory allocated for the control plane machines. |
| 44 | +<5> Specifies the network on which the control plane is deployed. |
| 45 | +<6> Specifies the number of CPUs allocated for the control plane machines. |
| 46 | +<7> Specifies the number of cores for each control plane CPU. |
| 47 | +<8> Specifies the vSphere VM template to use, such as `user-5ddjd-rhcos`. |
| 48 | +<9> Specifies the control plane user data secret. Do not change this value. |
| 49 | +<10> Specifies the vCenter Datacenter for the control plane. |
| 50 | +<11> Specifies the vCenter Datastore for the control plane. |
| 51 | +<12> Specifies the path to the vSphere VM folder in vCenter, such as `/dc1/vm/user-inst-5ddjd`. |
| 52 | +<13> Specifies the vSphere resource pool for your VMs. |
| 53 | +<14> Specifies the vCenter server IP or fully qualified domain name. |
0 commit comments