From d67663f1f9de5fd77c3bfe7350fcd9607e1a5c28 Mon Sep 17 00:00:00 2001 From: Howters <87410370+Howters@users.noreply.github.com> Date: Wed, 19 Jun 2024 11:41:25 +0700 Subject: [PATCH] update: Updated service-nginx-ingress.yaml for Kubernetes v1.22 or higher --- examples/service-nginx-ingress.yaml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/examples/service-nginx-ingress.yaml b/examples/service-nginx-ingress.yaml index 20a6c40..3dbeec9 100644 --- a/examples/service-nginx-ingress.yaml +++ b/examples/service-nginx-ingress.yaml @@ -34,7 +34,7 @@ spec: --- -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: nginx-ingress @@ -46,6 +46,9 @@ spec: http: paths: - path: / + pathType: Prefix backend: - serviceName: nginx-service - servicePort: 80 + service: + name: nginx-service + port: + number: 80