Merge pull request #9889 from lvjp/master
Use stable networking api in ingress-dns examplepull/9988/head
commit
92511decd0
|
@ -107,7 +107,7 @@ TODO
|
||||||
```bash
|
```bash
|
||||||
kubectl apply -f https://raw.githubusercontent.com/kubernetes/minikube/master/deploy/addons/ingress-dns/example/example.yaml
|
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
|
### Validate DNS queries are returning A records
|
||||||
```bash
|
```bash
|
||||||
|
|
|
@ -33,7 +33,7 @@ spec:
|
||||||
ports:
|
ports:
|
||||||
- containerPort: 8080
|
- containerPort: 8080
|
||||||
---
|
---
|
||||||
apiVersion: networking.k8s.io/v1beta1
|
apiVersion: networking.k8s.io/v1
|
||||||
kind: Ingress
|
kind: Ingress
|
||||||
metadata:
|
metadata:
|
||||||
name: example-ingress
|
name: example-ingress
|
||||||
|
@ -44,16 +44,22 @@ spec:
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: hello-world-app
|
service:
|
||||||
servicePort: 80
|
name: hello-world-app
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
- host: hello-jane.test
|
- host: hello-jane.test
|
||||||
http:
|
http:
|
||||||
paths:
|
paths:
|
||||||
- path: /
|
- path: /
|
||||||
|
pathType: Prefix
|
||||||
backend:
|
backend:
|
||||||
serviceName: hello-world-app
|
service:
|
||||||
servicePort: 80
|
name: hello-world-app
|
||||||
|
port:
|
||||||
|
number: 80
|
||||||
---
|
---
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
|
|
Loading…
Reference in New Issue