-
-
Notifications
You must be signed in to change notification settings - Fork 25
/
ingress-paths.yml
56 lines (56 loc) · 1.36 KB
/
ingress-paths.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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: webservers-paths
annotations:
nginx.ingress.kubernetes.io/rewrite-target: "/$2"
spec:
rules:
- host: 127.0.0.1.nip.io
http:
paths:
- path: /nginx(/|$)(.*)
pathType: Prefix
backend:
service:
name: nginx
port:
number: 80
- path: /apache(/|$)(.*)
pathType: Prefix
backend:
service:
name: apache
port:
number: 80
- path: /caddy(/|$)(.*)
pathType: Prefix
backend:
service:
name: caddy
port:
number: 80
- host: localhost
http:
paths:
- path: /nginx(/|$)(.*)
pathType: Prefix
backend:
service:
name: nginx
port:
number: 80
- path: /apache(/|$)(.*)
pathType: Prefix
backend:
service:
name: apache
port:
number: 80
- path: /caddy(/|$)(.*)
pathType: Prefix
backend:
service:
name: caddy
port:
number: 80