Skip to content

Commit 9e85b16

Browse files
authored
Merge pull request #60572 from jeana-redhat/OSDOCS-6241-CPMS-Nutanix-YAML-samples
[OSDOCS-6241]: CPMS for Nutanix: YAML samples
2 parents 9f3cc6b + 5af20a6 commit 9e85b16

File tree

6 files changed

+100
-13
lines changed

6 files changed

+100
-13
lines changed

machine_management/control_plane_machine_management/cpmso-configuration.adoc

Lines changed: 15 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ include::_attributes/common-attributes.adoc[]
66

77
toc::[]
88

9-
These example YAML file and snippets demonstrate the base structure for a control plane machine set custom resource (CR) and platform-specific samples for provider specification and failure domain configurations.
9+
These example YAML snippets show the base structure for a control plane machine set custom resource (CR) and platform-specific samples for provider specification and failure domain configurations.
1010

1111
//Sample YAML for a control plane machine set custom resource
1212
include::modules/cpmso-yaml-sample-cr.adoc[leveloffset=+1]
@@ -29,12 +29,14 @@ The `<platform_provider_spec>` and `<platform_failure_domains>` sections of the
2929

3030
* xref:../../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-azure_cpmso-configuration[Sample YAML snippets for configuring Microsoft Azure clusters]
3131

32+
* xref:../../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-nutanix_cpmso-configuration[Sample YAML snippets for configuring Nutanix clusters]
33+
3234
* xref:../../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-vsphere_cpmso-configuration[Sample YAML snippets for configuring VMware vSphere clusters]
3335

3436
[id="cpmso-sample-yaml-aws_{context}"]
3537
== Sample YAML for configuring Amazon Web Services clusters
3638

37-
Some sections of the control plane machine set CR are provider-specific. The example YAML in this section show provider specification and failure domain configurations for an Amazon Web Services (AWS) cluster.
39+
Some sections of the control plane machine set CR are provider-specific. The following example YAML snippets show provider specification and failure domain configurations for an Amazon Web Services (AWS) cluster.
3840

3941
//Sample AWS provider specification
4042
include::modules/cpmso-yaml-provider-spec-aws.adoc[leveloffset=+2]
@@ -49,7 +51,7 @@ include::modules/cpmso-yaml-failure-domain-aws.adoc[leveloffset=+2]
4951
[id="cpmso-sample-yaml-gcp_{context}"]
5052
== Sample YAML for configuring Google Cloud Platform clusters
5153

52-
Some sections of the control plane machine set CR are provider-specific. The example YAML in this section show provider specification and failure domain configurations for a Google Cloud Platform (GCP) cluster.
54+
Some sections of the control plane machine set CR are provider-specific. The following example YAML snippets show provider specification and failure domain configurations for a Google Cloud Platform (GCP) cluster.
5355

5456
//Sample GCP provider specification
5557
include::modules/cpmso-yaml-provider-spec-gcp.adoc[leveloffset=+2]
@@ -65,7 +67,7 @@ include::modules/cpmso-yaml-failure-domain-gcp.adoc[leveloffset=+2]
6567
[id="cpmso-sample-yaml-azure_{context}"]
6668
== Sample YAML for configuring Microsoft Azure clusters
6769

68-
Some sections of the control plane machine set CR are provider-specific. The example YAML in this section show provider specification and failure domain configurations for an Azure cluster.
70+
Some sections of the control plane machine set CR are provider-specific. The following example YAML snippets show provider specification and failure domain configurations for an Azure cluster.
6971

7072
//Sample Azure provider specification
7173
include::modules/cpmso-yaml-provider-spec-azure.adoc[leveloffset=+2]
@@ -77,10 +79,18 @@ include::modules/cpmso-yaml-failure-domain-azure.adoc[leveloffset=+2]
7779
.Additional resources
7880
* xref:../../machine_management/control_plane_machine_management/cpmso-using.adoc#cpmso-supported-features-azure_cpmso-using[Enabling Microsoft Azure features for control plane machines]
7981

82+
[id="cpmso-sample-yaml-nutanix_{context}"]
83+
== Sample YAML for configuring Nutanix clusters
84+
85+
Some sections of the control plane machine set CR are provider-specific. The following example YAML snippet shows a provider specification configuration for a Nutanix cluster.
86+
87+
//Sample Nutanix provider specification
88+
include::modules/cpmso-yaml-provider-spec-nutanix.adoc[leveloffset=+2]
89+
8090
[id="cpmso-sample-yaml-vsphere_{context}"]
8191
== Sample YAML for configuring VMware vSphere clusters
8292

83-
Some sections of the control plane machine set CR are provider-specific. The example YAML in this section shows a provider specification configuration for a VMware vSphere cluster.
93+
Some sections of the control plane machine set CR are provider-specific. The following example YAML snippet shows a provider specification configuration for a VMware vSphere cluster.
8494

8595
//Sample VMware vSphere provider specification
8696
include::modules/cpmso-yaml-provider-spec-vsphere.adoc[leveloffset=+2]

machine_management/index.adoc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ As a cluster administrator, you can perform the following actions:
6868

6969
** xref:../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-azure_cpmso-configuration[Azure]
7070

71+
** xref:../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-nutanix_cpmso-configuration[Nutanix]
72+
7173
** xref:../machine_management/control_plane_machine_management/cpmso-configuration.adoc#cpmso-sample-yaml-vsphere_cpmso-configuration[vSphere]
7274

7375
* Configure and deploy a xref:../machine_management/deploying-machine-health-checks.adoc#deploying-machine-health-checks[machine health check] to automatically recover unhealthy control plane machines.

modules/cpmso-yaml-provider-spec-aws.adoc

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="cpmso-yaml-provider-spec-aws_{context}"]
77
= Sample AWS provider specification
88

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.
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 custom resource (CR) that is created by the installation program. You can omit any field that is set in the failure domain section of the CR.
1010

1111
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:
1212

@@ -62,10 +62,10 @@ providerSpec:
6262
<3> Specifies the secret name for the cluster. Do not change this value.
6363
<4> Specifies the AWS Identity and Access Management (IAM) instance profile. Do not change this value.
6464
<5> Specifies the AWS instance type for the control plane.
65-
<6> Specifies the cloud provider platform type. Do not change this value.
65+
<6> Specifies the cloud provider platform type. Do not change this value.
6666
<7> Specifies the internal (`int`) and external (`ext`) load balancers for the cluster.
67-
<8> This parameter is configured in the failure domain, and is shown with an empty value here. If a value specified for this parameter differs from the value in the failure domain, the Operator overwrites it with the value in the failure domain.
67+
<8> This parameter is configured in the failure domain, and is shown with an empty value here. If a value specified for this parameter differs from the value in the failure domain, the Operator overwrites it with the value in the failure domain.
6868
<9> Specifies the AWS region for the cluster.
6969
<10> Specifies the control plane machines security group.
70-
<11> This parameter is configured in the failure domain, and is shown with an empty value here. If a value specified for this parameter differs from the value in the failure domain, the Operator overwrites it with the value in the failure domain.
70+
<11> This parameter is configured in the failure domain, and is shown with an empty value here. If a value specified for this parameter differs from the value in the failure domain, the Operator overwrites it with the value in the failure domain.
7171
<12> Specifies the control plane user data secret. Do not change this value.

modules/cpmso-yaml-provider-spec-gcp.adoc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ When you create a control plane machine set for an existing cluster, the provide
1010

1111
[discrete]
1212
[id="cpmso-yaml-provider-spec-gcp-oc_{context}"]
13-
== Values obtained by using the OpenShift CLI
13+
== Values obtained by using the OpenShift CLI
1414

1515
In the following example, you can obtain some of the values for your cluster by using the OpenShift CLI.
1616

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
// Module included in the following assemblies:
2+
//
3+
// * machine_management/cpmso-configuration.adoc
4+
5+
:_content-type: REFERENCE
6+
[id="cpmso-yaml-provider-spec-nutanix_{context}"]
7+
= Sample Nutanix provider specification
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 custom resource (CR) that is created by the installation program.
10+
11+
[discrete]
12+
[id="cpmso-yaml-provider-spec-nutanix-oc_{context}"]
13+
== Values obtained by using the OpenShift CLI
14+
15+
In the following example, you can obtain some of the values for your cluster by using the OpenShift CLI.
16+
17+
Infrastructure ID:: The `<cluster_id>` string 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:
18+
+
19+
[source,terminal]
20+
----
21+
$ oc get -o jsonpath='{.status.infrastructureName}{"\n"}' infrastructure cluster
22+
----
23+
24+
.Sample Nutanix `providerSpec` values
25+
[source,yaml]
26+
----
27+
providerSpec:
28+
value:
29+
apiVersion: machine.openshift.io/v1
30+
bootType: "" <1>
31+
categories: <2>
32+
- key: <category_name>
33+
value: <category_value>
34+
cluster: <3>
35+
type: uuid
36+
uuid: <cluster_uuid>
37+
credentialsSecret:
38+
name: nutanix-credentials <4>
39+
image: <5>
40+
name: <cluster_id>-rhcos
41+
type: name
42+
kind: NutanixMachineProviderConfig <6>
43+
memorySize: 16Gi <7>
44+
metadata:
45+
creationTimestamp: null
46+
project: <8>
47+
type: name
48+
name: <project_name>
49+
subnets: <9>
50+
- type: uuid
51+
uuid: <subnet_uuid>
52+
systemDiskSize: 120Gi <10>
53+
userDataSecret:
54+
name: master-user-data <11>
55+
vcpuSockets: 8 <12>
56+
vcpusPerSocket: 1 <13>
57+
----
58+
<1> Specifies the boot type that the control plane machines use. For more information about boot types, see link:https://portal.nutanix.com/page/documents/kbs/details?targetId=kA07V000000H3K9SAK[Understanding UEFI, Secure Boot, and TPM in the Virtualized Environment]. Valid values are `Legacy`, `SecureBoot`, or `UEFI`. The default is `Legacy`.
59+
+
60+
[NOTE]
61+
====
62+
You must use the `Legacy` boot type in {product-title} {product-version}.
63+
====
64+
<2> Specifies one or more Nutanix Prism categories to apply to control plane machines. This stanza requires `key` and `value` parameters for a category key-value pair that exists in Prism Central. For more information about categories, see link:https://portal.nutanix.com/page/documents/details?targetId=Prism-Central-Guide-vpc_2022_6:ssp-ssp-categories-manage-pc-c.html[Category management].
65+
<3> Specifies a Nutanix Prism Element cluster configuration. In this example, the cluster type is `uuid`, so there is a `uuid` stanza.
66+
<4> Specifies the secret name for the cluster. Do not change this value.
67+
<5> Specifies the image that was used to create the disk.
68+
<6> Specifies the cloud provider platform type. Do not change this value.
69+
<7> Specifies the memory allocated for the control plane machines.
70+
<8> Specifies the Nutanix project that you use for your cluster. In this example, the project type is `name`, so there is a `name` stanza.
71+
<9> Specifies a subnet configuration. In this example, the subnet type is `uuid`, so there is a `uuid` stanza.
72+
<10> Specifies the VM disk size for the control plane machines.
73+
<11> Specifies the control plane user data secret. Do not change this value.
74+
<12> Specifies the number of vCPU sockets allocated for the control plane machines.
75+
<13> Specifies the number of vCPUs for each control plane vCPU socket.

modules/cpmso-yaml-provider-spec-vsphere.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
[id="cpmso-yaml-provider-spec-vsphere_{context}"]
77
= Sample vSphere provider specification
88

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.
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 custom resource (CR) that is created by the installation program.
1010

1111
.Sample vSphere `providerSpec` values
1212
[source,yaml]
@@ -30,7 +30,7 @@ providerSpec:
3030
template: <vm_template_name> <8>
3131
userDataSecret:
3232
name: master-user-data <9>
33-
workspace:
33+
workspace:
3434
datacenter: <vcenter_datacenter_name> <10>
3535
datastore: <vcenter_datastore_name> <11>
3636
folder: <path_to_vcenter_vm_folder> <12>
@@ -39,7 +39,7 @@ providerSpec:
3939
----
4040
<1> Specifies the secret name for the cluster. Do not change this value.
4141
<2> Specifies the VM disk size for the control plane machines.
42-
<3> Specifies the cloud provider platform type. Do not change this value.
42+
<3> Specifies the cloud provider platform type. Do not change this value.
4343
<4> Specifies the memory allocated for the control plane machines.
4444
<5> Specifies the network on which the control plane is deployed.
4545
<6> Specifies the number of CPUs allocated for the control plane machines.

0 commit comments

Comments
 (0)