-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfizzbuzz-ingress.yaml
99 lines (99 loc) · 2.66 KB
/
fizzbuzz-ingress.yaml
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fizzbuzz-15
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /get?response=fizzbuzz
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: "/([0369]|[147][0369]*([147][0369]*[258][0369]*)*([147][0369]*[147]|[258])|[258][0369]*([258][0369]*[147][0369]*)*([258][0369]*[258]|[147]))*(0|[147][0369]*([147][0369]*[258][0369]*)*5|[258][0369]*([258][0369]*[147][0369]*)*[258][0369]*5)$"
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fizzbuzz-15
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /get?response=fizzbuzz
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: "/([0369]|[147][0369]*([147][0369]*[258][0369]*)*([147][0369]*[147]|[258])|[258][0369]*([258][0369]*[147][0369]*)*([258][0369]*[258]|[147]))*(0|[147][0369]*([147][0369]*[258][0369]*)*5|[258][0369]*([258][0369]*[147][0369]*)*[258][0369]*5)$"
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fizzbuzz-5
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /get?response=buzz
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: "/.*[05]$"
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fizzbuzz-3
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /get?response=fizz
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: "/([0369]|[147][0369]*[258]|(([258]|[147][0369]*[147])([0369]|[258][0369]*[147])*([147]|[258][0369]*[258])))+$"
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80
---
apiVersion: networking.k8s.io/v1
kind: Ingress
metadata:
name: fizzbuzz-none
annotations:
nginx.ingress.kubernetes.io/rewrite-target: /get?response=$1
nginx.ingress.kubernetes.io/use-regex: "true"
spec:
ingressClassName: nginx
rules:
- http:
paths:
- path: "/(.+)$"
pathType: Prefix
backend:
service:
name: httpbin
port:
number: 80