forked from hlxwell/k8s-beginner-demo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ingress.yml
36 lines (35 loc) · 913 Bytes
/
ingress.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
apiVersion: extensions/v1beta1
kind: Ingress
metadata:
name: echo-server-ingress
annotations:
kubernetes.io/ingress.class: traefik-internal
traefik.ingress.kubernetes.io/rewrite-target: /
# nginx.ingress.kubernetes.io/rewrite-target: /
spec:
rules:
# - host: k8s.memoryforcer.com
- http:
paths:
- path: /hello
backend:
serviceName: echo-server-svc
servicePort: 1323
- http:
paths:
- path: /v1/hello
backend:
serviceName: echo-server-svc-v1
servicePort: 1323
- http:
paths:
- path: /v2/hello
backend:
serviceName: echo-server-svc-v2
servicePort: 1323
- http:
paths:
- path: /v3/hello
backend:
serviceName: echo-server-svc-v3
servicePort: 1323