@@ -14,7 +14,7 @@ endif::[]
14
14
[id="machineset-yaml-azure_{context}"]
15
15
= Sample YAML for a machine set custom resource on Azure
16
16
17
- This sample YAML defines a machine set that runs in the `1` Microsoft Azure zone in the `centralus` region and creates nodes that are labeled with
17
+ This sample YAML defines a machine set that runs in the `1` Microsoft Azure zone in a region and creates nodes that are labeled with
18
18
ifndef::infra[`node-role.kubernetes.io/<role>: ""`.]
19
19
ifdef::infra[`node-role.kubernetes.io/infra: ""`.]
20
20
@@ -94,7 +94,12 @@ endif::infra[]
94
94
version: ""
95
95
internalLoadBalancer: ""
96
96
kind: AzureMachineProviderSpec
97
- location: centralus
97
+ ifndef::infra[]
98
+ location: <region> <4>
99
+ endif::infra[]
100
+ ifdef::infra[]
101
+ location: <region> <5>
102
+ endif::infra[]
98
103
managedIdentity: <infrastructure_id>-identity <1>
99
104
metadata:
100
105
creationTimestamp: null
@@ -116,10 +121,10 @@ endif::infra[]
116
121
vmSize: qeci-22538-vnet
117
122
vnet: <infrastructure_id>-vnet <1>
118
123
ifndef::infra[]
119
- zone: "1" <4 >
124
+ zone: "1" <5 >
120
125
endif::infra[]
121
126
ifdef::infra[]
122
- zone: "1" <5 >
127
+ zone: "1" <6 >
123
128
endif::infra[]
124
129
----
125
130
<1> Specify 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:
@@ -148,15 +153,19 @@ $ oc -n openshift-machine-api \
148
153
ifndef::infra[]
149
154
<2> Specify the node label to add.
150
155
<3> Specify the infrastructure ID, node label, and region.
151
- <4> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
156
+ <4> Specify the region to place machines on.
157
+ <5> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
152
158
endif::infra[]
153
159
ifdef::infra[]
154
160
<2> Specify the `<infra>` node label.
155
161
<3> Specify the infrastructure ID, `<infra>` node label, and region.
156
162
<4> Specify a taint to prevent user workloads from being scheduled on infra nodes.
157
- <5> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
163
+ <5> Specify the region to place machines on.
164
+ <6> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
165
+
158
166
endif::infra[]
159
167
168
+
160
169
ifeval::["{context}" == "creating-infrastructure-machinesets"]
161
170
:!infra:
162
171
endif::[]
0 commit comments