forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
server.yaml
177 lines (177 loc) · 5.38 KB
/
server.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
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
static_resources:
listeners:
- address:
socket_address:
address: "{{ ip_loopback_address }}"
port_value: 0
enable_reuse_port: "{{ enable_reuse_port }}"
filter_chains:
- filters:
- name: http
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
drain_timeout: 5s
route_config:
virtual_hosts:
- require_tls: all
routes:
- route: {cluster: cluster_1}
match: {prefix: "/"}
domains:
- www.redirect.com
name: redirect
- routes:
- match: {prefix: "/"}
route:
cluster: cluster_1
- match: {prefix: "/test/long/url"}
route:
rate_limits:
- actions:
- destination_cluster: {}
cluster: cluster_1
- match: {prefix: "/test/"}
route: {cluster: cluster_2}
- match: {prefix: "/websocket/test"}
route:
prefix_rewrite: "/websocket"
cluster: cluster_1
domains:
- "*"
name: integration
codec_type: http1
stat_prefix: router
http_filters:
- name: health
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.health_check.v3.HealthCheck
pass_through_mode: false
- name: envoy.filters.http.router
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
access_log:
- name: accesslog
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: "{{ null_device_path }}"
filter:
or_filter:
filters:
- status_code_filter:
comparison:
op: GE
value:
default_value: 500
runtime_key: access_log.access_error.status
- duration_filter:
comparison:
op: GE
value:
default_value: 1000
runtime_key: access_log.access_error.duration
clusters:
- name: cluster_1
connect_timeout: 5s
load_assignment:
cluster_name: cluster_1
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: "{{ ip_loopback_address }}"
port_value: "{{ upstream_0 }}"
dns_lookup_family: "{{ dns_lookup_family }}"
- name: cluster_2
type: STRICT_DNS
connect_timeout: 5s
load_assignment:
cluster_name: cluster_2
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: localhost
port_value: "{{ upstream_1 }}"
dns_lookup_family: "{{ dns_lookup_family }}"
- name: cluster_3
connect_timeout: 5s
per_connection_buffer_limit_bytes: 1024
load_assignment:
cluster_name: cluster_3
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: "{{ ip_loopback_address }}"
port_value: "{{ upstream_0 }}"
dns_lookup_family: "{{ dns_lookup_family }}"
- name: statsd
type: STRICT_DNS
connect_timeout: 5s
load_assignment:
cluster_name: statsd
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: localhost
port_value: 4
dns_lookup_family: "{{ dns_lookup_family }}"
- name: redis
type: STRICT_DNS
connect_timeout: 5s
lb_policy: RING_HASH
load_assignment:
cluster_name: redis
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: localhost
port_value: 4
dns_lookup_family: "{{ dns_lookup_family }}"
outlier_detection: {}
dynamic_resources: {}
cluster_manager: {}
flags_path: "/invalid_flags"
stats_sinks:
- name: local_stats
typed_config:
"@type": type.googleapis.com/envoy.config.metrics.v3.StatsdSink
address:
socket_address:
address: "{{ ip_loopback_address }}"
port_value: 8125
- name: tcp_stats
typed_config:
"@type": type.googleapis.com/envoy.config.metrics.v3.StatsdSink
tcp_cluster_name: statsd
layered_runtime:
layers:
- name: root
disk_layer:
symlink_root: "{{ test_tmpdir }}/test/common/runtime/test_data/current"
subdirectory: envoy
- name: override
disk_layer:
symlink_root: "{{ test_tmpdir }}/test/common/runtime/test_data/current"
subdirectory: envoy_override
append_service_cluster: true
- name: admin
admin_layer: {}
admin:
access_log:
- name: envoy.access_loggers.file
typed_config:
"@type": type.googleapis.com/envoy.extensions.access_loggers.file.v3.FileAccessLog
path: "{{ null_device_path }}"
profile_path: "{{ test_tmpdir }}/envoy.prof"
address:
socket_address:
address: "{{ ip_loopback_address }}"
port_value: 0