From cf9dacda13a2c2d1dd4e44686a5c203d54b0e29c Mon Sep 17 00:00:00 2001 From: Jon Cahill-Torre Date: Mon, 13 Jul 2026 15:31:22 +0100 Subject: [PATCH] fix: Add namespace to NGF deploy --- content/ngf/install/deploy-data-plane.md | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/content/ngf/install/deploy-data-plane.md b/content/ngf/install/deploy-data-plane.md index 841aab792..c3f3eb3b1 100644 --- a/content/ngf/install/deploy-data-plane.md +++ b/content/ngf/install/deploy-data-plane.md @@ -31,6 +31,7 @@ apiVersion: gateway.networking.k8s.io/v1 kind: Gateway metadata: name: cafe + namespace: nginx-gateway spec: gatewayClassName: nginx listeners: @@ -43,7 +44,7 @@ EOF To check that the Gateway has deployed correctly, use `kubectl describe` to check its status: ```shell -kubectl describe gateway +kubectl describe gateway -n nginx-gateway ``` You should see these conditions: @@ -79,7 +80,7 @@ Conditions: Using `kubectl get` you can see the NGINX Deployment: ```shell -kubectl get deployments +kubectl get deployments -n nginx-gateway ``` ```text NAME READY UP-TO-DATE AVAILABLE AGE @@ -89,7 +90,7 @@ cafe-nginx 1/1 1 1 3m18s You can also see the Service fronting it: ```shell -kubectl get services +kubectl get services -n nginx-gateway ``` ```text NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE @@ -173,7 +174,7 @@ type: NodePort After saving the changes, use `kubectl get` on the service, and you should see the service type has changed to `NodePort`. ```shell -kubectl get service cafe-nginx +kubectl get service cafe-nginx -n nginx-gateway ``` ```text NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE @@ -199,11 +200,11 @@ infrastructure: After saving the changes, check the Service and NGINX deployment with `kubectl describe`. ```shell -kubectl describe deployment cafe +kubectl describe deployment cafe-nginx -n nginx-gateway ``` ```text Name: cafe-nginx -Namespace: default +Namespace: nginx-gateway CreationTimestamp: Mon, 05 May 2025 16:49:33 -0700 ... Pod Template: @@ -219,11 +220,11 @@ Pod Template: ``` ```shell -kubectl describe service cafe-nginx +kubectl describe service cafe-nginx -n nginx-gateway ``` ```text Name: cafe-nginx -Namespace: default +Namespace: nginx-gateway Labels: app.kubernetes.io/instance=ngf app.kubernetes.io/managed-by=ngf-nginx app.kubernetes.io/name=cafe-nginx