Skip to content

Commit

Permalink
Merge pull request #9889 from lvjp/master
Browse files Browse the repository at this point in the history
Use stable networking api in ingress-dns example
  • Loading branch information
priyawadhwa authored Dec 28, 2020
2 parents 6bd2148 + 88627ff commit 92511de
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 6 deletions.
2 changes: 1 addition & 1 deletion deploy/addons/ingress-dns/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
16 changes: 11 additions & 5 deletions deploy/addons/ingress-dns/example/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ spec:
ports:
- containerPort: 8080
---
apiVersion: networking.k8s.io/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
Expand All @@ -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
Expand Down

0 comments on commit 92511de

Please sign in to comment.