Update the ingress sample to stable spec

pull/179/head
Li Yi 3 years ago
parent 33f727c4d4
commit 6956a812a4

@ -187,7 +187,7 @@ Win: %UserProfile%\.kube\config
安装
```shell
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-0.32.0/deploy/static/provider/cloud/deploy.yaml
kubectl apply -f https://raw.githubusercontent.com/kubernetes/ingress-nginx/controller-v1.0.4/deploy/static/provider/cloud/deploy.yaml
```
验证

@ -1,4 +1,4 @@
apiVersion: extensions/v1beta1
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
@ -9,10 +9,16 @@ spec:
- http:
paths:
- path: /apple
pathType: Exact
backend:
serviceName: apple-service
servicePort: 5678
service:
name: apple-service
port:
number: 5678
- path: /banana
pathType: Exact
backend:
serviceName: banana-service
servicePort: 5678
service:
name: banana-service
port:
number: 5678

Loading…
Cancel
Save