Files
website/content/zh/examples/service/networking/example-ingress.yaml
T
Qiming Teng ea85d09cd1 [zh] Sync changes to Ingress example
This is a sync from English site where the sample YAML is spawn into a
standalone file. (a79db9d5de).
2020-10-12 11:23:15 +08:00

18 lines
390 B
YAML

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