Skip to content

Commit eb7bc43

Browse files
david-yumicheleRP
andauthored
Update gcp-private-service-connect.adoc - Add more steps for BYOC (#220)
* Update gcp-private-service-connect.adoc * Update modules/networking/pages/gcp-private-service-connect.adoc Co-authored-by: Michele Cyran <[email protected]> * Update modules/networking/pages/gcp-private-service-connect.adoc Co-authored-by: Michele Cyran <[email protected]> * Update modules/networking/pages/gcp-private-service-connect.adoc Co-authored-by: Michele Cyran <[email protected]> * fix formatting --------- Co-authored-by: Michele Cyran <[email protected]>
1 parent bf9a070 commit eb7bc43

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

modules/networking/pages/gcp-private-service-connect.adoc

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -208,11 +208,18 @@ CAUTION: As soon as Private Service Connect is available on your VPC, all commun
208208
export CLUSTER_ID=<cluster-id>
209209
----
210210

211-
. For a *BYOC cluster*, run `rpk cloud byoc gcp apply`:
212-
+
211+
. For a *BYOC cluster*:
212+
+
213+
--
214+
- Run `rpk cloud byoc gcp apply` to ensure that the PSC subnets are created in your BYOC cluster.
213215
```bash
214-
rpk cloud byoc gcp apply --redpanda-id='$CLUSTER_ID' --project-id='<service-project-id>'
216+
rpk cloud byoc gcp apply --redpanda-id="${CLUSTER_ID}" --project-id='<service-project-id>'
215217
```
218+
- Run `gcloud compute networks subnets list` to find the newly-created Private Service Connect NAT subnet name.
219+
```bash
220+
gcloud compute networks subnets list --filter psc2-nat --format="value(name)"
221+
```
222+
--
216223
+
217224
For a *BYOVPC cluster*:
218225
+
@@ -222,21 +229,20 @@ For a *BYOVPC cluster*:
222229
- Run `rpk cloud byoc gcp apply`:
223230
+
224231
```bash
225-
rpk cloud byoc gcp apply --redpanda-id='$CLUSTER_ID' --project-id='<service-project-id>'
232+
rpk cloud byoc gcp apply --redpanda-id="${CLUSTER_ID}" --project-id='<service-project-id>'
226233
```
227234
--
228235

229236
. Make a request to the xref:api:ROOT:cloud-controlplane-api.adoc#patch-/v1/clusters/-cluster.id-[`PATCH /v1/clusters/{cluster.id}`] endpoint to update the cluster to include the newly-created Private Service Connect NAT subnet.
230237
+
231238
[,bash]
232239
----
233-
export ACCEPT_LIST='[]'
234240
export PSC_NAT_SUBNET_NAME='<psc-nat-subnet-name>'
235241
export CLUSTER_PATCH_BODY=`cat << EOF
236242
{
237243
"customer_managed_resources": {
238244
"gcp": {
239-
"psc_nat_subnet_name": "$PSC_NAT_SUBNET_NAME"
245+
"psc_nat_subnet_name": "${PSC_NAT_SUBNET_NAME}"
240246
}
241247
}
242248
}

0 commit comments

Comments
 (0)