[zh] Sync changes to Ingress example

This is a sync from English site where the sample YAML is spawn into a
standalone file. (a79db9d5de).
This commit is contained in:
Qiming Teng
2020-10-12 11:23:15 +08:00
parent 29e13ed527
commit ea85d09cd1
2 changed files with 20 additions and 21 deletions
@@ -0,0 +1,18 @@
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: example-ingress
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /$1
spec:
rules:
- host: hello-world.info
http:
paths:
- path: /
pathType: Prefix
backend:
service:
name: web
port:
number: 8080