-
Notifications
You must be signed in to change notification settings - Fork 0
/
loadbalancer.yaml
54 lines (53 loc) · 1.04 KB
/
loadbalancer.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
# loadbalancer.yaml
hosts:
- host: www.mango.com
header_rules:
add:
MyCustomHeader: Test
remove:
Host: www.mango.com
param_rules:
add:
MyCustomParam: Test
remove:
RemoveMe: Remove
rewrite_rules:
replace:
v1: v2
firewall_rules:
ip_reject:
- 10.192.0.1
- 10.192.0.2
servers:
- localhost:8081
- localhost:8082
- host: www.apple.com
header_rules:
remove:
Host: www.apple.com
firewall_rules:
path_reject:
- /messages
- /apps
servers:
- localhost:9081
- localhost:9082
- localhost:8888
- host: www.orange.com
servers:
- localhost:1111
- localhost:1212
paths:
- path: /mango
servers:
- localhost:8081
- localhost:8082
- path: /apple
servers:
- localhost:9081
- localhost:9082
- localhost:8888
- path: /orange
servers:
- localhost:1111
- localhost:1212