-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathenvoy.yaml
144 lines (137 loc) · 3.85 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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
static_resources:
listeners:
- 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: backend
domains:
- "*"
cors:
allow_origin_string_match:
- safe_regex:
google_re2: {}
regex: \*
allow_methods: "POST,GET,OPTIONS,PUT,DELETE"
allow_headers: "Accept, Content-Type, Content-Length, Accept-Encoding, X-CSRF-Token, Authorization, token"
routes:
- match:
prefix: "/auth"
route:
cluster: auth_service
- match:
prefix: "/users"
route:
cluster: users_service
- match:
prefix: "/posts"
route:
cluster: posts_service
- match:
prefix: "/media"
route:
cluster: media_service
- match:
prefix: "/"
route:
cluster: web_service
http_filters:
- name: envoy.filters.http.cors
typed_config: {}
- name: envoy.filters.http.router
typed_config: {}
clusters:
- name: auth_service
connect_timeout: 0.25s
type: strict_dns
http2_protocol_options: {}
lb_policy: round_robin
load_assignment:
cluster_name: auth_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: auth
port_value: 8000
- name: posts_service
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
load_assignment:
cluster_name: posts_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: posts
port_value: 8000
- name: users_service
connect_timeout: 0.25s
type: strict_dns
http2_protocol_options: {}
lb_policy: round_robin
load_assignment:
cluster_name: users_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: users
port_value: 8000
- name: media_service
connect_timeout: 0.25s
type: strict_dns
http2_protocol_options: {}
lb_policy: round_robin
load_assignment:
cluster_name: media_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: media
port_value: 8000
- name: web_service
connect_timeout: 0.25s
type: strict_dns
http2_protocol_options: {}
lb_policy: round_robin
load_assignment:
cluster_name: web_service
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: web
port_value: 8000
admin:
access_log_path: "/dev/null"
address:
socket_address:
address: 0.0.0.0
port_value: 8001
layered_runtime:
layers:
- name: static_layer_0
static_layer:
envoy:
resource_limits:
listener:
example_listener_name:
connection_limit: 10000