Skip to content

Commit 5d65d66

Browse files
committed
Add code review
1 parent 7e44a73 commit 5d65d66

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

content/ngf/how-to/traffic-management/advanced-routing.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,15 @@ EOF
6363
This gateway defines a single listener on port 80. Since no hostname is specified, this listener matches on all hostnames.
6464
After creating the Gateway resource, NGINX Gateway Fabric will provision an NGINX Pod and Service fronting it to route traffic.
6565

66+
Save the public IP address and port of the NGINX Service into shell variables:
67+
68+
```text
69+
GW_IP=XXX.YYY.ZZZ.III
70+
GW_PORT=<port number>
71+
```
72+
73+
{{< note >}}In a production environment, you should have a DNS record for the external IP address that is exposed, and it should refer to the hostname that the gateway will forward for.{{< /note >}}
74+
6675
The [HTTPRoute](https://gateway-api.sigs.k8s.io/api-types/httproute/) is typically deployed by the [application developer](https://gateway-api.sigs.k8s.io/concepts/roles-and-personas/#roles-and-personas_1). To deploy the `coffee` HTTPRoute:
6776

6877
```yaml
@@ -147,15 +156,6 @@ This HTTPRoute has a few important properties:
147156

148157
### Send traffic to Coffee
149158

150-
Save the public IP address and port of the NGINX Service into shell variables:
151-
152-
```text
153-
GW_IP=XXX.YYY.ZZZ.III
154-
GW_PORT=<port number>
155-
```
156-
157-
{{< note >}}In a production environment, you should have a DNS record for the external IP address that is exposed, and it should refer to the hostname that the gateway will forward for.{{< /note >}}
158-
159159
Using the external IP address and port for the NGINX Service, we can send traffic to our coffee applications.
160160

161161
{{< note >}} If you have a DNS record allocated for `cafe.example.com`, you can send the request directly to that hostname, without needing to resolve. {{< /note >}}

0 commit comments

Comments
 (0)