Skip to content

Commit c21df3e

Browse files
authored
Merge pull request #34310 from lbscorpio/machineset
Fix callouts in samples of machineset
2 parents cb14968 + bb87275 commit c21df3e

10 files changed

+131
-131
lines changed

modules/installation-osp-configuring-sr-iov.adoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ $ openstack subnet create --network uplink --subnet-range <uplink_network_subnet
5858
// +
5959
// [source,terminal]
6060
// ----
61-
// $ openstack port os_port_worker_0 --network <infrastructure_ID>-network --security-group <infrastructure_ID>-worker --fixed-ip subnet=<infrastructure_ID>-nodes,ip-address=<fixed_IP_address> --allowed-address ip-address=<infrastructure_ID>-ingress-port
61+
// $ openstack port os_port_worker_0 --network <infrastructure_id>-network --security-group <infrastructure_id>-worker --fixed-ip subnet=<infrastructure_id>-nodes,ip-address=<fixed_IP_address> --allowed-address ip-address=<infrastructure_ID>-ingress-port
6262
// ----
6363

6464
// . Create a port for SR-IOV traffic:
@@ -72,5 +72,5 @@ $ openstack subnet create --network uplink --subnet-range <uplink_network_subnet
7272
// +
7373
// [source,terminal]
7474
// ----
75-
// $ openstack server create --image <infrastructure_ID>-rhcos --flavor ocp --user-data <ocp project>/build-artifacts/worker.ign --nic port-id=<os_port_worker_0 ID> --nic port-id=<radio_port_ID> --config-drive true worker-<worker_ID>.<cluster_name>.<cluster_domain>
75+
// $ openstack server create --image <infrastructure_id>-rhcos --flavor ocp --user-data <ocp project>/build-artifacts/worker.ign --nic port-id=<os_port_worker_0 ID> --nic port-id=<radio_port_ID> --config-drive true worker-<worker_ID>.<cluster_name>.<cluster_domain>
7676
// ----

modules/machineset-osp-adding-bare-metal.adoc

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,24 +35,24 @@ apiVersion: machine.openshift.io/v1beta1
3535
kind: MachineSet
3636
metadata:
3737
labels:
38-
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
38+
machine.openshift.io/cluster-api-cluster: <infrastructure_id>
3939
machine.openshift.io/cluster-api-machine-role: <node_role>
4040
machine.openshift.io/cluster-api-machine-type: <node_role>
41-
name: <infrastructure_ID>-<node_role>
41+
name: <infrastructure_id>-<node_role>
4242
namespace: openshift-machine-api
4343
spec:
4444
replicas: <number_of_replicas>
4545
selector:
4646
matchLabels:
47-
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
48-
machine.openshift.io/cluster-api-machineset: <infrastructure_ID>-<node_role>
47+
machine.openshift.io/cluster-api-cluster: <infrastructure_id>
48+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<node_role>
4949
template:
5050
metadata:
5151
labels:
52-
machine.openshift.io/cluster-api-cluster: <infrastructure_ID>
52+
machine.openshift.io/cluster-api-cluster: <infrastructure_id>
5353
machine.openshift.io/cluster-api-machine-role: <node_role>
5454
machine.openshift.io/cluster-api-machine-type: <node_role>
55-
machine.openshift.io/cluster-api-machineset: <infrastructure_ID>-<node_role>
55+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<node_role>
5656
spec:
5757
providerSpec:
5858
value:
@@ -69,15 +69,15 @@ spec:
6969
subnets:
7070
- filter:
7171
name: <subnet_name>
72-
tags: openshiftClusterID=<infrastructure_ID>
72+
tags: openshiftClusterID=<infrastructure_id>
7373
securityGroups:
7474
- filter: {}
75-
name: <infrastructure_ID>-<node_role>
75+
name: <infrastructure_id>-<node_role>
7676
serverMetadata:
77-
Name: <infrastructure_ID>-<node_role>
78-
openshiftClusterID: <infrastructure_ID>
77+
Name: <infrastructure_id>-<node_role>
78+
openshiftClusterID: <infrastructure_id>
7979
tags:
80-
- openshiftClusterID=<infrastructure_ID>
80+
- openshiftClusterID=<infrastructure_id>
8181
trunk: true
8282
userDataSecret:
8383
name: <node_role>-user-data

modules/machineset-yaml-aws.adoc

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ This sample YAML defines a machine set that runs in the `us-east-1a` Amazon Web
1818
ifndef::infra[`node-role.kubernetes.io/<role>: ""`.]
1919
ifdef::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
2222
ifndef::infra[`<role>`]
23-
ifdef::infra[`infra`]
23+
ifdef::infra[`<infra>`]
2424
is the node label to add.
2525

2626
[source,yaml]
@@ -29,42 +29,42 @@ apiVersion: machine.openshift.io/v1beta1
2929
kind: MachineSet
3030
metadata:
3131
labels:
32-
machine.openshift.io/cluster-api-cluster: <infrastructureID> <1>
32+
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
3333
ifndef::infra[]
34-
name: <infrastructureID>-<role>-<zone> <2>
34+
name: <infrastructure_id>-<role>-<zone> <2>
3535
endif::infra[]
3636
ifdef::infra[]
37-
name: <infrastructureID>-infra-<zone> <2>
37+
name: <infrastructure_id>-infra-<zone> <2>
3838
endif::infra[]
3939
namespace: openshift-machine-api
4040
spec:
4141
replicas: 1
4242
selector:
4343
matchLabels:
44-
machine.openshift.io/cluster-api-cluster: <infrastructureID> <1>
44+
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
4545
ifndef::infra[]
46-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-<role>-<zone> <2>
46+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<zone> <2>
4747
endif::infra[]
4848
ifdef::infra[]
49-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-infra-<zone> <2>
49+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<zone> <2>
5050
endif::infra[]
5151
template:
5252
metadata:
5353
labels:
54-
machine.openshift.io/cluster-api-cluster: <infrastructureID> <1>
54+
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
5555
ifndef::infra[]
5656
machine.openshift.io/cluster-api-machine-role: <role> <3>
5757
machine.openshift.io/cluster-api-machine-type: <role> <3>
5858
endif::infra[]
5959
ifdef::infra[]
60-
machine.openshift.io/cluster-api-machine-role: infra <3>
61-
machine.openshift.io/cluster-api-machine-type: infra <3>
60+
machine.openshift.io/cluster-api-machine-role: <infra> <3>
61+
machine.openshift.io/cluster-api-machine-type: <infra> <3>
6262
endif::infra[]
6363
ifndef::infra[]
64-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-<role>-<zone> <2>
64+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<zone> <2>
6565
endif::infra[]
6666
ifdef::infra[]
67-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-infra-<zone> <2>
67+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<zone> <2>
6868
endif::infra[]
6969
spec:
7070
metadata:
@@ -97,7 +97,7 @@ endif::infra[]
9797
name: aws-cloud-credentials
9898
deviceIndex: 0
9999
iamInstanceProfile:
100-
id: <infrastructureID>-worker-profile <1>
100+
id: <infrastructure_id>-worker-profile <1>
101101
instanceType: m4.large
102102
kind: AWSMachineProviderConfig
103103
placement:
@@ -107,14 +107,14 @@ endif::infra[]
107107
- filters:
108108
- name: tag:Name
109109
values:
110-
- <infrastructureID>-worker-sg <1>
110+
- <infrastructure_id>-worker-sg <1>
111111
subnet:
112112
filters:
113113
- name: tag:Name
114114
values:
115-
- <infrastructureID>-private-us-east-1a <1>
115+
- <infrastructure_id>-private-us-east-1a <1>
116116
tags:
117-
- name: kubernetes.io/cluster/<infrastructureID> <1>
117+
- name: kubernetes.io/cluster/<infrastructure_id> <1>
118118
value: owned
119119
userDataSecret:
120120
name: worker-user-data
@@ -125,16 +125,16 @@ endif::infra[]
125125
----
126126
$ oc -n openshift-machine-api \
127127
-o jsonpath='{.spec.template.spec.providerSpec.value.ami.id}{"\n"}' \
128-
get machineset/<infrastructureID>-worker-us-east-1a
128+
get machineset/<infrastructure_id>-worker-us-east-1a
129129
----
130130
ifndef::infra[]
131131
<2> Specify the infrastructure ID, node label, and zone.
132132
<3> Specify the node label to add.
133133
<4> Specify a valid {op-system-first} AMI for your AWS zone for your {product-title} nodes.
134134
endif::infra[]
135135
ifdef::infra[]
136-
<2> Specify the infrastructure ID, `infra` node label, and zone.
137-
<3> Specify the `infra` node label.
136+
<2> Specify the infrastructure ID, `<infra>` node label, and zone.
137+
<3> Specify the `<infra>` node label.
138138
<4> Specify a taint to prevent user workloads from being scheduled on infra nodes.
139139
<5> Specify a valid {op-system-first} AMI for your AWS zone for your {product-title} nodes.
140140
endif::infra[]

modules/machineset-yaml-azure.adoc

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ This sample YAML defines a machine set that runs in the `1` Microsoft Azure zone
1818
ifndef::infra[`node-role.kubernetes.io/<role>: ""`.]
1919
ifdef::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
2222
ifndef::infra[`<role>`]
23-
ifdef::infra[`infra`]
23+
ifdef::infra[`<infra>`]
2424
is the node label to add.
2525

2626
[source,yaml]
@@ -29,43 +29,43 @@ apiVersion: machine.openshift.io/v1beta1
2929
kind: MachineSet
3030
metadata:
3131
labels:
32-
machine.openshift.io/cluster-api-cluster: <infrastructureID> <1>
32+
machine.openshift.io/cluster-api-cluster: <infrastructure_id> <1>
3333
ifndef::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>
3737
endif::infra[]
3838
ifdef::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>
4242
endif::infra[]
4343
namespace: openshift-machine-api
4444
spec:
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>
4949
ifndef::infra[]
50-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-<role>-<region> <3>
50+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-<role>-<region> <3>
5151
endif::infra[]
5252
ifdef::infra[]
53-
machine.openshift.io/cluster-api-machineset: <infrastructureID>-infra-<region> <3>
53+
machine.openshift.io/cluster-api-machineset: <infrastructure_id>-infra-<region> <3>
5454
endif::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>
6060
ifndef::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>
6464
endif::infra[]
6565
ifdef::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>
6969
endif::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>
118118
ifndef::infra[]
119119
zone: "1" <4>
120120
endif::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
----
140140
You 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
----
148148
ifndef::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.
152152
endif::infra[]
153153
ifdef::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.
158158
endif::infra[]

0 commit comments

Comments
 (0)