-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathenvoy.yaml
More file actions
124 lines (119 loc) · 4.17 KB
/
envoy.yaml
File metadata and controls
124 lines (119 loc) · 4.17 KB
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
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
static_resources:
listeners:
- name: emulator_http
address:
socket_address:
address: 0.0.0.0
port_value: 8080
filter_chains:
- filters:
- name: envoy.filters.network.http_connection_manager
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
codec_type: auto
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: emulator_site
domains: ["*"]
routes:
- match:
prefix: "/android.emulation.control.Rtc"
route:
cluster: emulator_service_grpc
timeout: 0s
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: "/android.emulation.control.EmulatorController"
route:
cluster: emulator_service_grpc
timeout: 0s
max_stream_duration:
grpc_timeout_header_max: 0s
- match:
prefix: "/api/"
route:
cluster: apkbridge
prefix_rewrite: "/"
timeout: 0s
- match:
prefix: "/bridge/"
route:
cluster: bridge_webrtc
prefix_rewrite: "/"
timeout: 0s
- match:
prefix: "/"
route:
cluster: frontend
http_filters:
- name: envoy.filters.http.grpc_web
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.grpc_web.v3.GrpcWeb
- name: envoy.filters.http.cors
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.cors.v3.Cors
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
clusters:
- name: emulator_service_grpc
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
http2_protocol_options: {}
load_assignment:
cluster_name: emulator_service_grpc
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: emulator
port_value: 8554
- name: frontend
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: frontend
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: frontend
port_value: 80
- name: apkbridge
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: apkbridge
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: apkbridge
port_value: 5000
- name: bridge_webrtc
connect_timeout: 0.25s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: bridge_webrtc
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: bridge-webrtc
port_value: 8090
admin:
address:
socket_address:
address: 0.0.0.0
port_value: 9901