@@ -18,9 +18,9 @@ This sample YAML defines a machine set that runs in the `1` Microsoft Azure zone
1818ifndef::infra[`node-role.kubernetes.io/<role>: ""`.]
1919ifdef::infra[`node-role.kubernetes.io/infra: ""`.]
2020
21- In this sample, `<infrastructureID >` is the infrastructure ID label that is based on the cluster ID that you set when you provisioned the cluster, and
21+ In this sample, `<infrastructure_id >` is the infrastructure ID label that is based on the cluster ID that you set when you provisioned the cluster, and
2222ifndef::infra[`<role>`]
23- ifdef::infra[`infra`]
23+ ifdef::infra[`< infra> `]
2424is the node label to add.
2525
2626[source,yaml]
@@ -29,43 +29,43 @@ apiVersion: machine.openshift.io/v1beta1
2929kind: MachineSet
3030metadata:
3131 labels:
32- machine.openshift.io/cluster-api-cluster: <infrastructureID > <1>
32+ machine.openshift.io/cluster-api-cluster: <infrastructure_id > <1>
3333ifndef::infra[]
3434 machine.openshift.io/cluster-api-machine-role: <role> <2>
3535 machine.openshift.io/cluster-api-machine-type: <role> <2>
36- name: <infrastructureID >-<role>-<region> <3>
36+ name: <infrastructure_id >-<role>-<region> <3>
3737endif::infra[]
3838ifdef::infra[]
39- machine.openshift.io/cluster-api-machine-role: infra <2>
40- machine.openshift.io/cluster-api-machine-type: infra <2>
41- name: <infrastructureID >-infra-<region> <3>
39+ machine.openshift.io/cluster-api-machine-role: < infra> <2>
40+ machine.openshift.io/cluster-api-machine-type: < infra> <2>
41+ name: <infrastructure_id >-infra-<region> <3>
4242endif::infra[]
4343 namespace: openshift-machine-api
4444spec:
4545 replicas: 1
4646 selector:
4747 matchLabels:
48- machine.openshift.io/cluster-api-cluster: <infrastructureID > <1>
48+ machine.openshift.io/cluster-api-cluster: <infrastructure_id > <1>
4949ifndef::infra[]
50- machine.openshift.io/cluster-api-machineset: <infrastructureID >-<role>-<region> <3>
50+ machine.openshift.io/cluster-api-machineset: <infrastructure_id >-<role>-<region> <3>
5151endif::infra[]
5252ifdef::infra[]
53- machine.openshift.io/cluster-api-machineset: <infrastructureID >-infra-<region> <3>
53+ machine.openshift.io/cluster-api-machineset: <infrastructure_id >-infra-<region> <3>
5454endif::infra[]
5555 template:
5656 metadata:
5757 creationTimestamp: null
5858 labels:
59- machine.openshift.io/cluster-api-cluster: <infrastructureID > <1>
59+ machine.openshift.io/cluster-api-cluster: <infrastructure_id > <1>
6060ifndef::infra[]
6161 machine.openshift.io/cluster-api-machine-role: <role> <2>
6262 machine.openshift.io/cluster-api-machine-type: <role> <2>
63- machine.openshift.io/cluster-api-machineset: <infrastructureID >-<role>-<region> <3>
63+ machine.openshift.io/cluster-api-machineset: <infrastructure_id >-<role>-<region> <3>
6464endif::infra[]
6565ifdef::infra[]
66- machine.openshift.io/cluster-api-machine-role: infra <2>
67- machine.openshift.io/cluster-api-machine-type: infra <2>
68- machine.openshift.io/cluster-api-machineset: <infrastructureID >-infra-<region> <3>
66+ machine.openshift.io/cluster-api-machine-role: < infra> <2>
67+ machine.openshift.io/cluster-api-machine-type: < infra> <2>
68+ machine.openshift.io/cluster-api-machineset: <infrastructure_id >-infra-<region> <3>
6969endif::infra[]
7070 spec:
7171 metadata:
@@ -89,13 +89,13 @@ endif::infra[]
8989 image:
9090 offer: ""
9191 publisher: ""
92- resourceID: /resourceGroups/<infrastructureID >-rg/providers/Microsoft.Compute/images/<infrastructureID >
92+ resourceID: /resourceGroups/<infrastructure_id >-rg/providers/Microsoft.Compute/images/<infrastructure_id> <1 >
9393 sku: ""
9494 version: ""
9595 internalLoadBalancer: ""
9696 kind: AzureMachineProviderSpec
9797 location: centralus
98- managedIdentity: <infrastructureID >-identity <1>
98+ managedIdentity: <infrastructure_id >-identity <1>
9999 metadata:
100100 creationTimestamp: null
101101 natRule: null
@@ -107,14 +107,14 @@ endif::infra[]
107107 osType: Linux
108108 publicIP: false
109109 publicLoadBalancer: ""
110- resourceGroup: <infrastructureID >-rg <1>
110+ resourceGroup: <infrastructure_id >-rg <1>
111111 sshPrivateKey: ""
112112 sshPublicKey: ""
113- subnet: <infrastructureID >-<role>-subnet <1> <2>
113+ subnet: <infrastructure_id >-<role>-subnet <1> <2>
114114 userDataSecret:
115115 name: worker-user-data <2>
116116 vmSize: qeci-22538-vnet
117- vnet: <infrastructureID >-vnet <1>
117+ vnet: <infrastructure_id >-vnet <1>
118118ifndef::infra[]
119119 zone: "1" <4>
120120endif::infra[]
@@ -135,24 +135,24 @@ You can obtain the subnet by running the following command:
135135----
136136$ oc -n openshift-machine-api \
137137 -o jsonpath='{.spec.template.spec.providerSpec.value.subnet}{"\n"}' \
138- get machineset/<infrastructureID >-worker-centralus1
138+ get machineset/<infrastructure_id >-worker-centralus1
139139----
140140You can obtain the vnet by running the following command:
141141+
142142[source,terminal]
143143----
144144$ oc -n openshift-machine-api \
145145 -o jsonpath='{.spec.template.spec.providerSpec.value.vnet}{"\n"}' \
146- get machineset/<infrastructureID >-worker-centralus1
146+ get machineset/<infrastructure_id >-worker-centralus1
147147----
148148ifndef::infra[]
149149<2> Specify the node label to add.
150150<3> Specify the infrastructure ID, node label, and region.
151151<4> Specify the zone within your region to place Machines on. Be sure that your region supports the zone that you specify.
152152endif::infra[]
153153ifdef::infra[]
154- <2> Specify the `infra` node label.
155- <3> Specify the infrastructure ID, `infra` node label, and region.
154+ <2> Specify the `< infra> ` node label.
155+ <3> Specify the infrastructure ID, `< infra> ` node label, and region.
156156<4> Specify a taint to prevent user workloads from being scheduled on infra nodes.
157157<5> Specify the zone within your region to place Machines on. Be sure that your region supports the zone that you specify.
158158endif::infra[]
0 commit comments