From 53dc2f7fc515910ece3cc22126fd2c6ddab4dc9a Mon Sep 17 00:00:00 2001 From: Kate Osborn Date: Wed, 8 Jan 2025 09:44:37 -0700 Subject: [PATCH] Move NGF_POD_NAME to setup --- .../traffic-management/upstream-settings.md | 24 +++++++------------ 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/site/content/how-to/traffic-management/upstream-settings.md b/site/content/how-to/traffic-management/upstream-settings.md index c4479d0645..a8b2fe45f1 100644 --- a/site/content/how-to/traffic-management/upstream-settings.md +++ b/site/content/how-to/traffic-management/upstream-settings.md @@ -40,6 +40,12 @@ For all the possible configuration options for `UpstreamSettingsPolicy`, see the GW_PORT= ``` +- Lookup the name of the NGINX Gateway Fabric pod and save into shell variable: + + ```text + NGF_POD_NAME= + ``` + {{< 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 >}} --- @@ -279,14 +285,7 @@ Status: Events: ``` -Next, verify that the policy has been applied to the `coffee` and `tea` upstreams by inspecting the NGINX configuration. -To do this, first save the NGINX Gateway Fabric pod name in a shell variable: - -```shell -NGF_POD_NAME= -``` - -Then, exec into the pod and print the NGINX configuration: +Next, verify that the policy has been applied to the `coffee` and `tea` upstreams by inspecting the NGINX configuration: ```shell kubectl exec -it -n nginx-gateway $NGF_POD_NAME -c nginx -- nginx -T @@ -359,14 +358,7 @@ Status: Events: ``` -Next, verify that the policy has been applied to the `coffee` upstreams, by inspecting the NGINX configuration. -To do this, first save the NGINX Gateway Fabric pod name in a shell variable: - -```shell -NGF_POD_NAME= -``` - -Then, exec into the pod and print the NGINX configuration: +Next, verify that the policy has been applied to the `coffee` upstreams, by inspecting the NGINX configuration: ```shell kubectl exec -it -n nginx-gateway $NGF_POD_NAME -c nginx -- nginx -T