forked from cilium/proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cilium_proxy_test.json
74 lines (74 loc) · 2.02 KB
/
cilium_proxy_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
{
"listeners": [
{
"address": "tcp://{{ ip_loopback_address }}:0",
"listener_filters": [
{ "name": "test_bpf_metadata", "config": {
"original_dst_address": "{{ ip_loopback_address }}:{{ upstream_0 }}",
"socket_mark": 42
}}
],
"filters": [{
"name": "http_connection_manager",
"config": {
"codec_type": "auto",
"stat_prefix": "ingress_http",
"route_config": {
"virtual_hosts": [{
"name": "policy_enabled",
"domains": ["*"],
"routes": [{
"prefix": "/allowed",
"cluster": "cluster1"
}, {
"prefix": "/",
"headers": [{ "name": ":path", "value": ".*public$", "regex": true}],
"cluster": "cluster1"
}, {
"prefix": "/",
"headers": [{ "name": ":authority", "value": "allowedHOST", "regex": false}],
"cluster": "cluster1"
}, {
"prefix": "/",
"headers": [{ "name": ":authority", "value": ".*REGEX.*", "regex": true}],
"cluster": "cluster1"
}, {
"prefix": "/",
"headers": [{ "name": ":method", "value": "PUT", "regex": false},
{ "name": ":path", "value": "/public/opinions", "regex": false}],
"cluster": "cluster1"
}]
}]
},
"access_log": [
{
"path": "/dev/stdout"
}
],
"filters": [
{
"name": "cilium.l7policy",
"config": {
"access_log_path": "",
"listener_id": "foo42"
}
},
{
"name": "router",
"config": {}
}
]
}
}]
}],
"admin": { "access_log_path": "/dev/null",
"address": "tcp://{{ ip_loopback_address }}:0" },
"cluster_manager": {
"clusters": [{
"name": "cluster1",
"connect_timeout_ms": 1000,
"type": "original_dst",
"lb_type": "original_dst_lb"
}]
}
}