-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcanary_and_unit_test.json
107 lines (107 loc) · 3.93 KB
/
canary_and_unit_test.json
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
100
101
102
103
104
105
106
107
{
"class": "AS3",
"action": "deploy",
"declaration": {
"class": "ADC",
"updateMode": "selective",
"schemaVersion": "3.6.0",
"id": "usecase1_canary_id",
"label": "usecase1_canary_label",
"remark": "usecase1_canary_remark",
"premiere_0": {
"class": "Tenant",
"usecase1_canary_vs": {
"class": "Application",
"template": "http",
"serviceMain": {
"class": "Service_HTTP",
"virtualAddresses": [
"10.128.10.201"
],
"snat": "auto",
"pool": "usecase1_pl",
"policyEndpoint": "usecase1_canary_l7policy",
"iRules": [
{"bigip": "/Common/canary"},
{"bigip": "/Common/unittest"}
]
},
"usecase1_pl": {
"class": "Pool",
"monitors": [
"http"
],
"members": [{
"servicePort": 80,
"serverAddresses": [
"10.128.20.4"
]
}
]
},
"usecase1_canary_pl": {
"class": "Pool",
"monitors": [
"http"
],
"members": [{
"servicePort": 82,
"serverAddresses": [
"10.128.20.4"
]
}
]
},
"usecase1_canary_l7policy": {
"class": "Endpoint_Policy",
"remark": "L7 Policy for stats",
"rules": [
{
"name": "stats",
"conditions": [
{
"type": "httpUri",
"event": "request",
"path": {
"operand": "equals",
"values": [
"/stats"
]
}
}
],
"actions": [
{
"type": "httpRedirect",
"event": "response",
"location": "/index.php"
}
]
},
{
"name": "canary",
"actions": [
{
"type": "httpHeader",
"event": "request",
"insert": {
"name": "canary_percentage",
"value": "20"
}
},
{
"type": "httpHeader",
"event": "request",
"insert": {
"name": "canary_pool",
"value": "/premiere_0/usecase1_canary_vs/usecase1_canary_pl"
}
}
]
}
]
}
}
}
}
}