-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy.yaml
71 lines (71 loc) · 2.37 KB
/
envoy.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 80
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: http_proxy
route_config:
name: all
virtual_hosts:
- name: backend_cluster
domains:
- "f45f-36-85-218-31.ngrok.io"
routes:
- match:
prefix: "/"
route:
cluster: backend_cluster
- name: backend_cluster2
domains:
- "localhost"
routes:
- match:
prefix: "/"
route:
cluster: backend_cluster2
http_filters:
- name: envoy.filters.http.router
clusters:
- name: backend_cluster
connect_timeout: 1s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: backend_cluster
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: docker.for.mac.localhost
port_value: 1111
- endpoint:
address:
socket_address:
address: docker.for.mac.localhost
port_value: 2222
- name: backend_cluster2
connect_timeout: 1s
type: STRICT_DNS
lb_policy: ROUND_ROBIN
load_assignment:
cluster_name: backend_cluster2
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: docker.for.mac.localhost
port_value: 3333
- endpoint:
address:
socket_address:
address: docker.for.mac.localhost
port_value: 4444