Skip to content

Commit 46b03d0

Browse files
committed
[OSDOCS-3585]: Correct field in GCP creating machine set YAML
1 parent 5a2bbe6 commit 46b03d0

File tree

1 file changed

+16
-6
lines changed

1 file changed

+16
-6
lines changed

modules/machineset-yaml-gcp.adoc

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,14 @@ endif::infra[]
8080
labels: null
8181
sizeGb: 128
8282
type: pd-ssd
83+
ifndef::infra[]
84+
gcpMetadata: <4>
85+
endif::infra[]
86+
ifdef::infra[]
87+
gcpMetadata: <5>
88+
endif::infra[]
89+
- key: <custom_metadata_key>
90+
value: <custom_metadata_value>
8391
kind: GCPMachineProviderSpec
8492
machineType: n1-standard-4
8593
metadata:
@@ -88,18 +96,18 @@ endif::infra[]
8896
- network: <infrastructure_id>-network <1>
8997
subnetwork: <infrastructure_id>-worker-subnet <1>
9098
ifndef::infra[]
91-
projectID: <project_name> <4>
99+
projectID: <project_name> <5>
92100
endif::infra[]
93101
ifdef::infra[]
94-
projectID: <project_name> <5>
102+
projectID: <project_name> <6>
95103
endif::infra[]
96104
region: us-central1
97105
serviceAccounts:
98106
ifndef::infra[]
99-
- email: <infrastructure_id>-w@<project_name>.iam.gserviceaccount.com <1> <4>
107+
- email: <infrastructure_id>-w@<project_name>.iam.gserviceaccount.com <1> <5>
100108
endif::infra[]
101109
ifdef::infra[]
102-
- email: <infrastructure_id>-w@<project_name>.iam.gserviceaccount.com <1> <5>
110+
- email: <infrastructure_id>-w@<project_name>.iam.gserviceaccount.com <1> <6>
103111
endif::infra[]
104112
scopes:
105113
- https://www.googleapis.com/auth/cloud-platform
@@ -125,7 +133,8 @@ $ oc -n openshift-machine-api \
125133
-o jsonpath='{.spec.template.spec.providerSpec.value.disks[0].image}{"\n"}' \
126134
get machineset/<infrastructure_id>-worker-a
127135
----
128-
<4> Specify the name of the GCP project that you use for your cluster.
136+
<4> Optional: Specify custom metadata in the form of a `key:value` pair. For example use cases, see the GCP documentation for link:https://cloud.google.com/compute/docs/metadata/setting-custom-metadata[setting custom metadata].
137+
<5> Specify the name of the GCP project that you use for your cluster.
129138
endif::infra[]
130139
ifdef::infra[]
131140
<2> Specify the `<infra>` node label.
@@ -138,7 +147,8 @@ $ oc -n openshift-machine-api \
138147
-o jsonpath='{.spec.template.spec.providerSpec.value.disks[0].image}{"\n"}' \
139148
get machineset/<infrastructure_id>-worker-a
140149
----
141-
<5> Specify the name of the GCP project that you use for your cluster.
150+
<5> Optional: Specify custom metadata in the form of a `key:value` pair. For example use cases, see the GCP documentation for link:https://cloud.google.com/compute/docs/metadata/setting-custom-metadata[setting custom metadata].
151+
<6> Specify the name of the GCP project that you use for your cluster.
142152
endif::infra[]
143153

144154
ifeval::["{context}" == "creating-infrastructure-machinesets"]

0 commit comments

Comments
 (0)