Merge pull request #9889 from lvjp/master

Use stable networking api in ingress-dns example
pull/9988/head
priyawadhwa 2020-12-28 10:38:26 -08:00 committed by GitHub
commit 92511decd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 12 additions and 6 deletions

View File

@ -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

View File

@ -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