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
+172-2Lines changed: 172 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,22 +85,192 @@ In the NGINXaaS Console,
85
85
86
86
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).
87
87
88
-
1. Access the [Google Cloud Console](https://console.cloud.google.com/).
88
+
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.
89
+
1. Create or reuse a [VPC network](https://cloud.google.com/vpc/docs/create-modify-vpc-networks).
90
+
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.
89
91
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.
90
92
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.
91
93
- Set **Network endpoint group type** to **Private Service Connect NEG (Regional)**.
92
94
- Set **Taget** to **Published service**.
93
95
- For **Target service**, enter your NGINXaaS deployment's Service Attachment, which is visible on the `Deployment Details` section for your deployment.
94
96
- For **Producer port**, enter the port your NGINX server is listening on. If you're using the default NGINX config, enter port `80`.
95
97
- For **Network** and **Subnetwork** select your consumer VPC network and subnet.
96
-
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.
97
98
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.
98
99
- For **Network**, select your consumer VPC network.
99
100
- 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).
100
101
- In the **Frontend configuration** section,
101
102
- For **IP address**, select the public IP address created earlier.
102
103
- For **Port number**, enter the same port as your NEG's Producer port, for example, port `80`.
103
104
105
+
106
+
Each listening port configured on NGINX requires its own network endpoint group with a matching port. You can use the following helper script to automate these steps:
107
+
108
+
{{< details summary="Show helper script" >}}
109
+
110
+
```bash
111
+
#!/bin/bash
112
+
set -euo pipefail
113
+
114
+
# Default values
115
+
PROJECT=""
116
+
REGION=""
117
+
NETWORK=""
118
+
SA_URI=""
119
+
PORTS="80"
120
+
PROXY_SUBNET="psc-proxy-subnet"
121
+
VIPNAME="psc-vip"
122
+
# Prerequisites:
123
+
# - gcloud CLI installed and configured
124
+
# - An existing projectID and a VPC network created in that project
125
+
# - 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