You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/nginxaas-google/getting-started/create-deployment/deploy-console.md
+170-2Lines changed: 170 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -89,22 +89,190 @@ In the NGINXaaS Console,
89
89
90
90
To set up connectivity to your NGINXaaS deployment, you will need to configure a [Private Service Connect backend](https://cloud.google.com/vpc/docs/private-service-connect-backends).
91
91
92
-
1. Access the [Google Cloud Console](https://console.cloud.google.com/).
92
+
1. Access the [Google Cloud Console](https://console.cloud.google.com/) and select the project where your networking resources for connecting to your F5 NGINXaaS deployment should be created.
93
+
1. Create or reuse a [VPC network](https://cloud.google.com/vpc/docs/create-modify-vpc-networks).
94
+
1. Create a proxy-only subnet in your consumer VPC. See [Google's documentation on creating a proxy-only subnet](https://cloud.google.com/load-balancing/docs/tcp/set-up-ext-reg-tcp-proxy-zonal#console_1) for a step-by-step guide.
93
95
1. Create a public IP address. See [Google's documentation on reserving a static address](https://cloud.google.com/load-balancing/docs/tcp/set-up-ext-reg-tcp-proxy-zonal#console_3) for a step-by-step guide.
94
96
1. Create a Private Service Connect Network Endpoint Group (PSC NEG). See [Google's documentation on creating a NEG](https://cloud.google.com/vpc/docs/access-apis-managed-services-private-service-connect-backends#console) for a step-by-step guide.
95
97
- Set **Network endpoint group type** to **Private Service Connect NEG (Regional)**.
96
98
- Set **Taget** to **Published service**.
97
99
- For **Target service**, enter your NGINXaaS deployment's Service Attachment, which is visible on the `Deployment Details` section for your deployment.
98
100
- For **Producer port**, enter the port your NGINX server is listening on. If you're using the default NGINX config, enter port `80`.
99
101
- For **Network** and **Subnetwork** select your consumer VPC network and subnet.
100
-
1. Create a proxy-only subnet in your consumer VPC. See [Google's documentation on creating a proxy-only subnet](https://cloud.google.com/load-balancing/docs/tcp/set-up-ext-reg-tcp-proxy-zonal#console_1) for a step-by-step guide.
101
102
1. Create a regional external proxy Network Load Balancer. See [Google's documentation on configuring the load balancer](https://cloud.google.com/load-balancing/docs/tcp/set-up-ext-reg-tcp-proxy-zonal#console_6) for a step-by-step guide.
102
103
- For **Network**, select your consumer VPC network.
103
104
- For **Backend configuration**, follow [Google's step-by-step guide to add a backend](https://cloud.google.com/vpc/docs/access-apis-managed-services-private-service-connect-backends#console_5).
104
105
- In the **Frontend configuration** section,
105
106
- For **IP address**, select the public IP address created earlier.
106
107
- For **Port number**, enter the same port as your NEG's Producer port, for example, port `80`.
107
108
109
+
110
+
Each listening port configured on NGINX requires its own PSC network endpoint group with a matching port. You can use the following helper script to automate these steps:
111
+
112
+
{{< details summary="Show helper script" >}}
113
+
114
+
```bash
115
+
#!/bin/bash
116
+
set -euo pipefail
117
+
# Default values
118
+
PROJECT=""
119
+
REGION=""
120
+
NETWORK=""
121
+
SA_URI=""
122
+
PORTS="80"
123
+
PROXY_SUBNET="psc-proxy-subnet"
124
+
VIPNAME="psc-vip"
125
+
126
+
# Prerequisites:
127
+
# - gcloud CLI installed and configured
128
+
# - An existing projectID and a VPC network created in that project
129
+
# - A valid Service Attachment URI from F5 NGINXaaS
1. To test your deployment, go to the IP address created in [Set up connectivity to your deployment]({{< ref "/nginxaas-google/getting-started/create-deployment/deploy-console.md#set-up-connectivity-to-your-deployment">}}) using your favorite web browser.
0 commit comments