Skip to content

Commit fbf8616

Browse files
committed
OSDOCS-12592: Docs for OCPSTRAT-1577 OpenShift Zones support for vSphere Host Groups Day 1, IPI
1 parent 17b39dd commit fbf8616

6 files changed

+243
-0
lines changed

installing/installing_vsphere/ipi/installing-restricted-networks-installer-provisioned-vsphere.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ include::modules/installation-creating-image-restricted.adoc[leveloffset=+1]
3939

4040
include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
4141

42+
include::modules/installation-vsphere-regions-zones-host-groups.adoc[leveloffset=+1]
43+
4244
[role="_additional-resources"]
4345
.Additional resources
4446

@@ -50,6 +52,8 @@ include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
5052

5153
* xref:../../../storage/container_storage_interface/persistent-storage-csi-vsphere.adoc#persistent-storage-csi-vsphere-top-aware_persistent-storage-csi-vsphere[VMware vSphere CSI Driver Operator]
5254

55+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
56+
5357
include::modules/installation-initializing.adoc[leveloffset=+1]
5458

5559
[role="_additional-resources"]
@@ -62,6 +66,12 @@ include::modules/installation-configure-proxy.adoc[leveloffset=+2]
6266

6367
include::modules/configuring-vsphere-regions-zones.adoc[leveloffset=+2]
6468

69+
include::modules/configuring-vsphere-host-groups.adoc[leveloffset=+2]
70+
71+
[role="_additional-resources"]
72+
.Additional resources
73+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
74+
6575
// Services for a user-managed load balancer
6676
include::modules/nw-osp-services-external-load-balancer.adoc[leveloffset=+1]
6777

installing/installing_vsphere/ipi/installing-vsphere-installer-provisioned-customizations.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ include::modules/cluster-entitlements.adoc[leveloffset=+1]
3131

3232
include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
3333

34+
include::modules/installation-vsphere-regions-zones-host-groups.adoc[leveloffset=+1]
35+
3436
[role="_additional-resources"]
3537
.Additional resources
3638

@@ -42,6 +44,8 @@ include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
4244

4345
* xref:../../../storage/container_storage_interface/persistent-storage-csi-vsphere.adoc#persistent-storage-csi-vsphere-top-aware_persistent-storage-csi-vsphere[VMware vSphere CSI Driver Operator]
4446

47+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
48+
4549
include::modules/installation-initializing.adoc[leveloffset=+1]
4650

4751
[role="_additional-resources"]
@@ -54,6 +58,12 @@ include::modules/installation-configure-proxy.adoc[leveloffset=+2]
5458

5559
include::modules/configuring-vsphere-regions-zones.adoc[leveloffset=+2]
5660

61+
include::modules/configuring-vsphere-host-groups.adoc[leveloffset=+2]
62+
63+
[role="_additional-resources"]
64+
.Additional resources
65+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
66+
5767
// Services for a user-managed load balancer
5868
include::modules/nw-osp-services-external-load-balancer.adoc[leveloffset=+1]
5969

installing/installing_vsphere/ipi/installing-vsphere-installer-provisioned-network-customizations.adoc

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ include::modules/cluster-entitlements.adoc[leveloffset=+1]
3333

3434
include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
3535

36+
include::modules/installation-vsphere-regions-zones-host-groups.adoc[leveloffset=+1]
37+
3638
[role="_additional-resources"]
3739
.Additional resources
3840

@@ -44,6 +46,8 @@ include::modules/installation-vsphere-regions-zones.adoc[leveloffset=+1]
4446

4547
* xref:../../../storage/container_storage_interface/persistent-storage-csi-vsphere.adoc#persistent-storage-csi-vsphere-top-aware_persistent-storage-csi-vsphere[VMware vSphere CSI Driver Operator]
4648

49+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
50+
4751
include::modules/installation-initializing.adoc[leveloffset=+1]
4852

4953
[role="_additional-resources"]
@@ -58,6 +62,12 @@ include::modules/ipi-install-modifying-install-config-for-dual-stack-network.ado
5862

5963
include::modules/configuring-vsphere-regions-zones.adoc[leveloffset=+2]
6064

65+
include::modules/configuring-vsphere-host-groups.adoc[leveloffset=+2]
66+
67+
[role="_additional-resources"]
68+
.Additional resources
69+
* xref:../../../nodes/clusters/nodes-cluster-enabling-features.adoc#nodes-cluster-enabling[Enabling features using feature gates]
70+
6171
// Specifying multiple NICS
6272
include::modules/installation-vsphere-multiple-nics.adoc[leveloffset=+2]
6373

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// Module included in the following assemblies:
2+
//
3+
//* /installing/installing_vsphere/ipi/installing-vsphere-installer-provisioned-customizations.adoc
4+
//* /installing/installing_vsphere/ipi/installing-vsphere-installer-provisioned-network-customizations.adoc
5+
//* /installing/installing_vsphere/ipi/installing-restricted-networks-installer-provisioned-vsphere.adoc
6+
7+
:_mod-docs-content-type: PROCEDURE
8+
[id="configuring-vsphere-host-groups_{context}"]
9+
= Configuring host groups for a VMware vCenter
10+
11+
:FeatureName: Openshift zones support for vSphere host groups
12+
include::snippets/technology-preview.adoc[]
13+
14+
You can modify the default installation configuration file to deploy an {product-title} cluster on a {vmw-first} stretched cluster, where ESXi hosts are grouped into host groups by physical location.
15+
16+
The default `install-config.yaml` file configuration from previous releases of {product-title} is deprecated. Though you can still use it, the {product-title} installer will display a warning message that indicates the use of deprecated fields in the configuration file.
17+
18+
.Prerequisites
19+
20+
* You have an existing `install-config.yaml` installation configuration file.
21+
* You have arranged your ESXi hosts into host groups.
22+
* You have granted the `Host.Inventory.EditCluster` privilege on the {vmw-short} vCenter cluster object.
23+
* You have downloaded and installed the `govc` command line tool. Instructions can be found on the VMware documentation website. Note that `govc` is an open-source tool that is not maintained by the Red{nbsp}Hat support team.
24+
* You have enabled the `TechPreviewNoUpgrade` feature set. For more information, see "Enabling features using feature gates".
25+
+
26+
[IMPORTANT]
27+
====
28+
To enable host group support, you must define multiple failure domains for your {product-title} cluster.
29+
====
30+
31+
.Procedure
32+
33+
. Create the `openshift-region` and `openshift-zone` vCenter tag categories by running the following commands:
34+
+
35+
[IMPORTANT]
36+
====
37+
If you specify different names for the `openshift-region` and `openshift-zone` vCenter tag categories, the installation of the {product-title} cluster fails.
38+
====
39+
40+
+
41+
[source,terminal]
42+
----
43+
$ govc tags.category.create -d "OpenShift region" openshift-region
44+
----
45+
+
46+
[source,terminal]
47+
----
48+
$ govc tags.category.create -d "OpenShift zone" openshift-zone
49+
----
50+
51+
. Create a region tag for the {vmw-short} cluster where you want to deploy your {product-title} cluster by entering the following command:
52+
+
53+
[source,terminal]
54+
----
55+
$ govc tags.create -c <region_tag_category> <region_tag>
56+
----
57+
58+
. Create a zone tag for each host group by entering the following command as needed:
59+
+
60+
[source,terminal]
61+
----
62+
$ govc tags.create -c <zone_tag_category> <zone_tag>
63+
----
64+
65+
. Attach the region tag to the vCenter cluster object by entering the following command:
66+
+
67+
[source,terminal]
68+
----
69+
$ govc tags.attach -c <region_tag_category> <region_tag_1> /<datacenter_1>/host/<cluster_1>
70+
----
71+
72+
. Use zone tags to associate each ESXi host with its host group, by entering the following command for each ESXi host:
73+
+
74+
[source,terminal]
75+
----
76+
$ govc tags.attach -c <zone_tag_category> <zone_tag_for_host_group_1> /<datacenter_1>/host/<cluster_1>/<esxi_host_in_host_group_1>
77+
----
78+
79+
. Change to the directory that contains the installation program and initialize the cluster deployment according to your chosen installation requirements.
80+
81+
.Sample `install-config.yaml` file with multiple host groups
82+
83+
[source,yaml]
84+
----
85+
featureSet: TechPreviewNoUpgrade
86+
featureGate:
87+
- "VSphereHostVMGroupZonal=true"
88+
# ...
89+
platform:
90+
vsphere:
91+
vcenters:
92+
# ...
93+
datacenters:
94+
- <data_center_1_name>
95+
failureDomains:
96+
- name: <host_group_1>
97+
region: <cluster_1_region_tag>
98+
zone: <host_group_1_zone_tag>
99+
regionType: "ComputeCluster"
100+
zoneType: "HostGroup"
101+
server: <fully_qualified_domain_name>
102+
topology:
103+
datacenter: <data_center_1>
104+
computeCluster: "/<data_center_1>/host/<cluster_1>"
105+
networks:
106+
- <VM_Network1_name>
107+
hostGroup: <host_group_1_name>
108+
datastore: "/<data_center_1>/datastore/<datastore_1>"
109+
resourcePool: "/<data_center_1>/host/<cluster_1>/Resources/<resourcePool_1>"
110+
folder: "/<data_center_1>/vm/<folder_1>"
111+
- name: <host_group_2>
112+
region: <cluster_1_region_tag>
113+
zone: <host_group_2_zone_tag>
114+
regionType: "ComputeCluster"
115+
zoneType: "HostGroup"
116+
server: <fully_qualified_domain_name>
117+
topology:
118+
datacenter: <data_center_1>
119+
computeCluster: "/<data_center_1>/host/<cluster_1>"
120+
networks:
121+
- <VM_Network1_name>
122+
hostGroup: <host_group_2_name>
123+
datastore: "/<data_center_1>/datastore/<datastore_1>"
124+
resourcePool: "/<data_center_1>/host/<cluster_1>/Resources/<resourcePool_1>"
125+
folder: "/<data_center_1>/vm/<folder_1>"
126+
----

modules/installation-configuration-parameters.adoc

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2869,6 +2869,22 @@ endif::vsphere[]
28692869
failureDomains:
28702870
region:
28712871
|If you define multiple failure domains for your cluster, you must attach the tag to each vCenter data center. To define a region, use a tag from the `openshift-region` tag category. For a single vSphere data center environment, you do not need to attach a tag, but you must enter an alphanumeric value, such as `datacenter`, for the parameter.
2872+
If you want base your failure domains on host groups, attach these tags to your vSphere clusters instead of your data centers.
2873+
2874+
:FeatureName: Openshift zones support for vSphere host groups
2875+
include::snippets/technology-preview.adoc[]
2876+
2877+
|String
2878+
2879+
|platform:
2880+
vsphere:
2881+
failureDomains:
2882+
regionType:
2883+
|Specifies the `ComputeCluster` region type to enable host groups.
2884+
2885+
:FeatureName: Openshift zones support for vSphere host groups
2886+
include::snippets/technology-preview.adoc[]
2887+
28722888
|String
28732889

28742890
|platform:
@@ -2883,6 +2899,22 @@ endif::vsphere[]
28832899
failureDomains:
28842900
zone:
28852901
|If you define multiple failure domains for your cluster, you must attach a tag to each vCenter cluster. To define a zone, use a tag from the `openshift-zone` tag category. For a single vSphere data center environment, you do not need to attach a tag, but you must enter an alphanumeric value, such as `cluster`, for the parameter.
2902+
If you want to base your failure domains on host groups, define zones that correspond to your host groups instead of your clusters. Use these tags to associate each ESXi host with its host group.
2903+
2904+
:FeatureName: Openshift zones support for vSphere host groups
2905+
include::snippets/technology-preview.adoc[]
2906+
2907+
|String
2908+
2909+
|platform:
2910+
vsphere:
2911+
failureDomains:
2912+
zoneType:
2913+
|Specifies the `HostGroup` zone type to enable host groups.
2914+
2915+
:FeatureName: Openshift zones support for vSphere host groups
2916+
include::snippets/technology-preview.adoc[]
2917+
28862918
|String
28872919

28882920
|platform:
@@ -2940,6 +2972,18 @@ If you do not provide this value, the installation program creates a top-level f
29402972
endif::vsphere[]
29412973
|String
29422974

2975+
|platform:
2976+
vsphere:
2977+
failureDomains:
2978+
topology:
2979+
hostGroup:
2980+
|Specifies the vSphere host group to associate with the failure domain.
2981+
2982+
:FeatureName: Openshift zones support for vSphere host groups
2983+
include::snippets/technology-preview.adoc[]
2984+
2985+
|String
2986+
29432987
|platform:
29442988
vsphere:
29452989
failureDomains:
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// Module included in the following assemblies:
2+
//
3+
//* installing/installing-vsphere-installer-provisioned-customizations.adoc [IPI]
4+
//* installing/installing-vsphere-installer-provisioned-network-customizations.adoc [IPI]
5+
//* installing/installing-restricted-networks-installer-provisioned-vsphere.adoc [IPI]
6+
7+
:_mod-docs-content-type: CONCEPT
8+
[id="installation-vsphere-regions-zones-host-groups_{context}"]
9+
= VMware vSphere host group enablement
10+
11+
:FeatureName: Openshift zones support for vSphere host groups
12+
include::snippets/technology-preview.adoc[]
13+
14+
When deploying an {product-title} cluster to {vmw-first}, you can map your {vmw-short} host groups onto {product-title} failure domains. This is useful if you are using a stretched cluster configuration, where ESXi hosts are grouped into host groups by physical location.
15+
16+
To enable this feature, you must meet the following requirements:
17+
18+
* You must arrange your ESXi hosts into host groups.
19+
* You must create a vCenter tag in the `openshift-region` tag category for your cluster. After you create the tag, you must attach the tag to the cluster.
20+
* You must create a vCenter tag in the `openshift-zone` tag category for each host group and then attach the correct tag to each ESXi host.
21+
* You must define multiple failure domains for your {product-title} cluster in the `install-config.yaml` file.
22+
* You must grant the `Host.Inventory.EditCluster` privilege on the {vmw-short} vCenter cluster object.
23+
* You must include the following parameters in your `install-config.yaml` file to enable this Technology Preview feature:
24+
+
25+
[source,yaml]
26+
----
27+
featureSet: TechPreviewNoUpgrade
28+
featureGate:
29+
- "VSphereHostVMGroupZonal=true"
30+
----
31+
+
32+
[NOTE]
33+
====
34+
For further information on feature gates, see "Enabling features using feature gates".
35+
====
36+
37+
Review the following key terms, which correspond to parameters in your `install-config.yaml` file that you must configure to enable this feature:
38+
39+
* Failure domain: Specifies the relationships between regions and zones in {product-title}, and clusters and host groups in {vmw-short}. You define a failure domain by using vCenter objects, such as a `datastore` object. A failure domain defines the vCenter location for {product-title} cluster nodes.
40+
* Region: Specifies a vCenter cluster. You define a region by using a tag from the `openshift-region` tag category.
41+
* Zone: Specifies a vCenter host group. You define a zone by using a tag from the `openshift-zone` tag category.
42+
* Region type: Specifies the `ComputeCluster` region type to enable this feature.
43+
* Zone type: Specifies the `HostGroup` zone type to enable this feature.

0 commit comments

Comments
 (0)