-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathenvoy.yaml
109 lines (108 loc) · 3.44 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
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
static_resources:
listeners:
- name: listener_0
address:
socket_address:
address: 0.0.0.0
port_value: 3500
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
stat_prefix: edge
http_filters:
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
route_config:
virtual_hosts:
- name: direct_response_service
domains: [ "*" ]
routes:
- match:
prefix: "/api/users"
route:
cluster: users
- match:
prefix: "/api/challenges"
route:
cluster: challenges
- match:
prefix: "/api/flashcards"
route:
cluster: flashcards
- match:
prefix: "/api/notes"
route:
cluster: notes
- match:
prefix: "/api/features"
route:
cluster: features
clusters:
- name: users
connect_timeout: 0.25s
type: logical_dns
lb_policy: round_robin
load_assignment:
cluster_name: users
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: users
port_value: 3500
- name: challenges
connect_timeout: 0.25s
type: logical_dns
lb_policy: round_robin
load_assignment:
cluster_name: challenges
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: challenges
port_value: 3500
- name: flashcards
connect_timeout: 0.25s
type: logical_dns
lb_policy: round_robin
load_assignment:
cluster_name: flashcards
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: flashcards
port_value: 3500
- name: notes
connect_timeout: 0.25s
type: logical_dns
lb_policy: round_robin
load_assignment:
cluster_name: notes
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: notes
port_value: 3500
- name: features
connect_timeout: 0.25s
type: logical_dns
lb_policy: round_robin
load_assignment:
cluster_name: features
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: features
port_value: 3500