-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy.yaml.tmpl
executable file
·57 lines (56 loc) · 1.52 KB
/
envoy.yaml.tmpl
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
admin:
access_log_path: /tmp/admin_access.log
address:
socket_address:
protocol: TCP
address: 127.0.0.1
port_value: 9901
static_resources:
listeners:
- name: listener_0
per_connection_buffer_limit_bytes: 20971520
address:
socket_address:
address: 0.0.0.0
port_value: LISTENER_PORT
filter_chains:
- filters:
- name: envoy.http_connection_manager
config:
stat_prefix: ingress_http
route_config:
name: local_route
virtual_hosts:
- name: local_service
domains: ["*"]
routes:
- match:
path: "/envoy-health-check"
direct_response:
status: 200
- match:
prefix: "/"
route:
cluster: service_local
timeout: 300s
upgrade_configs:
- upgrade_type: "websocket"
enabled: WEBSOCKET_ENABLED
http_filters:
- name: envoy.router
tls_context:
common_tls_context:
alpn_protocols: "h2,http/1.1"
tls_certificates:
- certificate_chain:
filename: "/etc/ssl/private/tls.crt"
private_key:
filename: "/etc/ssl/private/tls.key"
clusters:
- name: service_local
connect_timeout: 5s
type: STATIC
hosts:
- socket_address:
address: TARGET_HOST
port_value: TARGET_PORT