From 2f24219713bcc048b74c01c4e07c0520ba0b5a77 Mon Sep 17 00:00:00 2001 From: Greg Whorley <11302134+gregwhorley@users.noreply.github.com> Date: Tue, 9 Nov 2021 14:00:37 -0800 Subject: [PATCH] update ingress spec --- docs/tutorials/nginx-ingress.md | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) diff --git a/docs/tutorials/nginx-ingress.md b/docs/tutorials/nginx-ingress.md index 842adb44e..66b068ee7 100644 --- a/docs/tutorials/nginx-ingress.md +++ b/docs/tutorials/nginx-ingress.md @@ -297,13 +297,18 @@ metadata: annotations: kubernetes.io/ingress.class: nginx spec: + ingressClassName: nginx rules: - host: via-ingress.external-dns-test.gcp.zalan.do http: paths: - - backend: - serviceName: nginx - servicePort: 80 + - path: / + backend: + service: + name: nginx + port: + number: 80 + pathType: Prefix --- @@ -593,13 +598,18 @@ metadata: annotations: kubernetes.io/ingress.class: nginx spec: + ingressClassName: nginx rules: - host: via-ingress.external-dns-test.gcp.zalan.do http: paths: - - backend: - serviceName: nginx - servicePort: 80 + - path: / + backend: + service: + name: nginx + port: + number: 80 + pathType: Prefix --- apiVersion: v1 kind: Service