Skip to content

Commit 4a6d33b

Browse files
authored
Merge pull request #72191 from jeana-redhat/OCPBUGS-25398-fix-azure-image-details
OCPBUGS-25398: update Azure machine set YAML sample
2 parents 52888e9 + 67c7d8b commit 4a6d33b

File tree

2 files changed

+37
-37
lines changed

2 files changed

+37
-37
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ spec:
3939
image: <2>
4040
offer: ""
4141
publisher: ""
42-
resourceID: /resourceGroups/<cluster_id>-rg/providers/Microsoft.Compute/galleries/gallery_<cluster_id>/images/<cluster_id>-gen2/ versions/412.86.20220930 <3>
42+
resourceID: /resourceGroups/<cluster_id>-rg/providers/Microsoft.Compute/galleries/gallery_<cluster_id>/images/<cluster_id>-gen2/versions/412.86.20220930 <3>
4343
sku: ""
4444
version: ""
4545
internalLoadBalancer: <cluster_id>-internal <4>

modules/machineset-yaml-azure.adoc

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ ifdef::infra[`node-role.kubernetes.io/infra: ""`.]
1717

1818
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
1919
ifndef::infra[`<role>`]
20-
ifdef::infra[`<infra>`]
20+
ifdef::infra[`infra`]
2121
is the node label to add.
2222

2323
[source,yaml]
@@ -26,71 +26,71 @@ apiVersion: machine.openshift.io/v1beta1
2626
kind: MachineSet
2727
metadata:
2828
labels:
29-
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
29+
machine.openshift.io/cluster-api-cluster: <infrastructure_id> # <1>
3030
ifndef::infra[]
31-
machine.openshift.io/cluster-api-machine-role: <role> <2>
32-
machine.openshift.io/cluster-api-machine-type: <role> <2>
33-
name: <infrastructure_id>-<role>-<region> <3>
31+
machine.openshift.io/cluster-api-machine-role: <role> # <2>
32+
machine.openshift.io/cluster-api-machine-type: <role>
33+
name: <infrastructure_id>-<role>-<region> # <3>
3434
endif::infra[]
3535
ifdef::infra[]
36-
machine.openshift.io/cluster-api-machine-role: <infra> <2>
37-
machine.openshift.io/cluster-api-machine-type: <infra> <2>
38-
name: <infrastructure_id>-infra-<region> <3>
36+
machine.openshift.io/cluster-api-machine-role: infra # <2>
37+
machine.openshift.io/cluster-api-machine-type: infra
38+
name: <infrastructure_id>-infra-<region> # <3>
3939
endif::infra[]
4040
namespace: openshift-machine-api
4141
spec:
4242
replicas: 1
4343
selector:
4444
matchLabels:
45-
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
45+
machine.openshift.io/cluster-api-cluster: <infrastructure_id>
4646
ifndef::infra[]
47-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<region> <3>
47+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<region>
4848
endif::infra[]
4949
ifdef::infra[]
50-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<region> <3>
50+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<region>
5151
endif::infra[]
5252
template:
5353
metadata:
5454
creationTimestamp: null
5555
labels:
56-
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
56+
machine.openshift.io/cluster-api-cluster: <infrastructure_id>
5757
ifndef::infra[]
58-
machine.openshift.io/cluster-api-machine-role: <role> <2>
59-
machine.openshift.io/cluster-api-machine-type: <role> <2>
60-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<region> <3>
58+
machine.openshift.io/cluster-api-machine-role: <role>
59+
machine.openshift.io/cluster-api-machine-type: <role>
60+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<region>
6161
endif::infra[]
6262
ifdef::infra[]
63-
machine.openshift.io/cluster-api-machine-role: <infra> <2>
64-
machine.openshift.io/cluster-api-machine-type: <infra> <2>
65-
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<region> <3>
63+
machine.openshift.io/cluster-api-machine-role: infra
64+
machine.openshift.io/cluster-api-machine-type: infra
65+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<region>
6666
endif::infra[]
6767
spec:
6868
metadata:
6969
creationTimestamp: null
7070
labels:
7171
machine.openshift.io/cluster-api-machineset: <machineset_name>
7272
ifndef::infra[]
73-
node-role.kubernetes.io/<role>: "" <2>
73+
node-role.kubernetes.io/<role>: ""
7474
endif::infra[]
7575
ifdef::infra[]
76-
node-role.kubernetes.io/infra: "" <2>
76+
node-role.kubernetes.io/infra: ""
7777
endif::infra[]
7878
providerSpec:
7979
value:
8080
apiVersion: azureproviderconfig.openshift.io/v1beta1
8181
credentialsSecret:
8282
name: azure-cloud-credentials
8383
namespace: openshift-machine-api
84-
image: <4>
84+
image: # <4>
8585
offer: ""
8686
publisher: ""
87-
resourceID: /resourceGroups/<infrastructure_id>-rg/providers/Microsoft.Compute/images/<infrastructure_id> <5>
87+
resourceID: /resourceGroups/<infrastructure_id>-rg/providers/Microsoft.Compute/galleries/gallery_<infrastructure_id>/images/<infrastructure_id>-gen2/versions/latest # <5>
8888
sku: ""
8989
version: ""
9090
internalLoadBalancer: ""
9191
kind: AzureMachineProviderSpec
92-
location: <region> <6>
93-
managedIdentity: <infrastructure_id>-identity <1>
92+
location: <region> # <6>
93+
managedIdentity: <infrastructure_id>-identity
9494
metadata:
9595
creationTimestamp: null
9696
natRule: null
@@ -102,20 +102,20 @@ endif::infra[]
102102
osType: Linux
103103
publicIP: false
104104
publicLoadBalancer: ""
105-
resourceGroup: <infrastructure_id>-rg <1>
105+
resourceGroup: <infrastructure_id>-rg
106106
sshPrivateKey: ""
107107
sshPublicKey: ""
108108
tags:
109-
- name: <custom_tag_name> <8>
110-
value: <custom_tag_value> <8>
111-
subnet: <infrastructure_id>-<role>-subnet <1> <2>
109+
- name: <custom_tag_name> # <7>
110+
value: <custom_tag_value>
111+
subnet: <infrastructure_id>-<role>-subnet
112112
userDataSecret:
113-
name: worker-user-data <2>
113+
name: worker-user-data
114114
vmSize: Standard_D4s_v3
115-
vnet: <infrastructure_id>-vnet <1>
116-
zone: "1" <7>
115+
vnet: <infrastructure_id>-vnet
116+
zone: "1" # <8>
117117
ifdef::infra[]
118-
taints: <9>
118+
taints: # <9>
119119
- key: node-role.kubernetes.io/infra
120120
effect: NoSchedule
121121
endif::infra[]
@@ -148,14 +148,14 @@ ifndef::infra[]
148148
<3> Specify the infrastructure ID, node label, and region.
149149
endif::infra[]
150150
ifdef::infra[]
151-
<2> Specify the `<infra>` node label.
152-
<3> Specify the infrastructure ID, `<infra>` node label, and region.
151+
<2> Specify the `infra` node label.
152+
<3> Specify the infrastructure ID, `infra` node label, and region.
153153
endif::infra[]
154154
<4> Specify the image details for your compute machine set. If you want to use an Azure Marketplace image, see "Selecting an Azure Marketplace image".
155155
<5> Specify an image that is compatible with your instance type. The Hyper-V generation V2 images created by the installation program have a `-gen2` suffix, while V1 images have the same name without the suffix.
156156
<6> Specify the region to place machines on.
157-
<7> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
158-
<8> Optional: Specify custom tags in your machine set. Provide the tag name in `<custom_tag_name>` field and the corresponding tag value in `<custom_tag_value>` field.
157+
<7> Optional: Specify custom tags in your machine set. Provide the tag name in `<custom_tag_name>` field and the corresponding tag value in `<custom_tag_value>` field.
158+
<8> Specify the zone within your region to place machines on. Be sure that your region supports the zone that you specify.
159159
ifdef::infra[]
160160
<9> Specify a taint to prevent user workloads from being scheduled on infra nodes.
161161
+

0 commit comments

Comments
 (0)