From 88627ff782762bcd2a6b7d5fc475cbe62cc5242a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laurent=20VERDO=C3=8FA?= Date: Sat, 26 Dec 2020 10:52:27 +0100 Subject: [PATCH] Use stable networking api in ingress-dns example --- deploy/addons/ingress-dns/README.md | 2 +- deploy/addons/ingress-dns/example/example.yaml | 16 +++++++++++----- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/deploy/addons/ingress-dns/README.md b/deploy/addons/ingress-dns/README.md index 64b9b69fe2..145d67b374 100644 --- a/deploy/addons/ingress-dns/README.md +++ b/deploy/addons/ingress-dns/README.md @@ -107,7 +107,7 @@ TODO ```bash kubectl apply -f https://raw.githubusercontent.com/kubernetes/minikube/master/deploy/addons/ingress-dns/example/example.yaml ``` -Note: Minimum Kubernetes version for example ingress is 1.14.7 +Note: Minimum Kubernetes version for example ingress is 1.19 ### Validate DNS queries are returning A records ```bash diff --git a/deploy/addons/ingress-dns/example/example.yaml b/deploy/addons/ingress-dns/example/example.yaml index e1f89729a9..e1906c2149 100644 --- a/deploy/addons/ingress-dns/example/example.yaml +++ b/deploy/addons/ingress-dns/example/example.yaml @@ -33,7 +33,7 @@ spec: ports: - containerPort: 8080 --- -apiVersion: networking.k8s.io/v1beta1 +apiVersion: networking.k8s.io/v1 kind: Ingress metadata: name: example-ingress @@ -44,16 +44,22 @@ spec: http: paths: - path: / + pathType: Prefix backend: - serviceName: hello-world-app - servicePort: 80 + service: + name: hello-world-app + port: + number: 80 - host: hello-jane.test http: paths: - path: / + pathType: Prefix backend: - serviceName: hello-world-app - servicePort: 80 + service: + name: hello-world-app + port: + number: 80 --- apiVersion: v1 kind: Service