Skip to content

Commit 53dc2f7

Browse files
author
Kate Osborn
committed
Move NGF_POD_NAME to setup
1 parent a1ca27d commit 53dc2f7

File tree

1 file changed

+8
-16
lines changed

1 file changed

+8
-16
lines changed

site/content/how-to/traffic-management/upstream-settings.md

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,12 @@ For all the possible configuration options for `UpstreamSettingsPolicy`, see the
4040
GW_PORT=<port number>
4141
```
4242

43+
- Lookup the name of the NGINX Gateway Fabric pod and save into shell variable:
44+
45+
```text
46+
NGF_POD_NAME=<NGF Pod>
47+
```
48+
4349
{{< 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 >}}
4450

4551
---
@@ -279,14 +285,7 @@ Status:
279285
Events: <none>
280286
```
281287

282-
Next, verify that the policy has been applied to the `coffee` and `tea` upstreams by inspecting the NGINX configuration.
283-
To do this, first save the NGINX Gateway Fabric pod name in a shell variable:
284-
285-
```shell
286-
NGF_POD_NAME=<NGF Pod>
287-
```
288-
289-
Then, exec into the pod and print the NGINX configuration:
288+
Next, verify that the policy has been applied to the `coffee` and `tea` upstreams by inspecting the NGINX configuration:
290289

291290
```shell
292291
kubectl exec -it -n nginx-gateway $NGF_POD_NAME -c nginx -- nginx -T
@@ -359,14 +358,7 @@ Status:
359358
Events: <none>
360359
```
361360

362-
Next, verify that the policy has been applied to the `coffee` upstreams, by inspecting the NGINX configuration.
363-
To do this, first save the NGINX Gateway Fabric pod name in a shell variable:
364-
365-
```shell
366-
NGF_POD_NAME=<NGF Pod>
367-
```
368-
369-
Then, exec into the pod and print the NGINX configuration:
361+
Next, verify that the policy has been applied to the `coffee` upstreams, by inspecting the NGINX configuration:
370362

371363
```shell
372364
kubectl exec -it -n nginx-gateway $NGF_POD_NAME -c nginx -- nginx -T

0 commit comments

Comments
 (0)