forked from aeraki-mesh/meta-protocol-proxy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.yaml
52 lines (51 loc) · 1.58 KB
/
test.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
admin:
access_log_path: ./envoy_debug.log
address:
socket_address:
address: 127.0.0.1
port_value: 8080
static_resources:
listeners:
name: listener_meta_protocol
address:
socket_address:
address: 0.0.0.0
port_value: 9090
filter_chains:
- filters:
- name: aeraki.meta_protocol_proxy
typed_config:
'@type': type.googleapis.com/aeraki.meta_protocol_proxy.v1alpha.MetaProtocolProxy
application_protocol: thrift
codec:
name: aeraki.meta_protocol.codec.thrift
metaProtocolFilters:
- name: aeraki.meta_protocol.filters.router
routeConfig:
routes:
- name: default
match:
metadata:
- name: method
exact_match: sayHello
route:
cluster: outbound|9090||thrift-sample-server.thrift.svc.cluster.local
request_mutation:
- key: foo
value: bar
- key: foo1
value: bar1
statPrefix: outbound|9090||thrift-sample-server.thrift.svc.cluster.local
clusters:
name: outbound|9090||thrift-sample-server.thrift.svc.cluster.local
type: STATIC
connect_timeout: 5s
load_assignment:
cluster_name: outbound|9090||thrift-sample-server.thrift.svc.cluster.local
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: 127.0.0.1
port_value: 9091