-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy.wsh2.yaml
138 lines (138 loc) · 3.71 KB
/
envoy.wsh2.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
static_resources:
listeners:
- address:
socket_address:
address: 0.0.0.0
port_value: 8001
listener_filters:
- name: "envoy.listener.tls_inspector"
typed_config: {}
filter_chains:
- filters:
- name: envoy.http_connection_manager
#typed_config:
# "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
config:
codec_type: auto
stat_prefix: localgw
common_http_protocol_options:
#max_stream_duration: 3600s
max_connection_duration: 3600s
http2_protocol_options:
allow_connect: true
access_log:
- name: envoy.file_access_log
config:
path: "/dev/stdout"
upgrade_configs:
upgrade_type: "CONNECT"
# connect_config:
route_config:
name: local_route
virtual_hosts:
- name: backend2
domains:
- "*"
routes:
- match:
prefix: "/"
route:
cluster: "echo_cluster"
timeout: 3600s
http_filters:
- name: envoy.router
typed_config: {}
- address:
socket_address:
address: 0.0.0.0
port_value: 8002
listener_filters:
- name: "envoy.listener.tls_inspector"
typed_config: {}
filter_chains:
- filters:
- name: envoy.http_connection_manager
#typed_config:
# "@type": type.googleapis.com/envoy.config.filter.network.http_connection_manager.v2.HttpConnectionManager
config:
codec_type: HTTP2
stat_prefix: localgw
common_http_protocol_options:
#max_stream_duration: 3600s
max_connection_duration: 3600s
http2_protocol_options:
allow_connect: true
access_log:
- name: envoy.file_access_log
config:
path: "/dev/stdout"
upgrade_configs:
upgrade_type: websocket
route_config:
name: local_route
virtual_hosts:
- name: backend2
domains:
- "*"
routes:
- match:
prefix: "/"
route:
cluster: "echo_cluster"
timeout: 3600s
http_filters:
- name: envoy.router
typed_config: {}
clusters:
- name: service1
connect_timeout: 0.25s
type: strict_dns
lb_policy: round_robin
http2_protocol_options: {}
hosts:
- socket_address:
address: 127.0.0.1
port_value: 80
dns_refresh_rate: 60s
- name: ping_cluster
connect_timeout: 1s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 9000
dns_refresh_rate: 60s
- name: echo_cluster
connect_timeout: 1s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 9999
dns_refresh_rate: 60s
- name: clusterhttpbin
connect_timeout: 1s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 7000
dns_refresh_rate: 60s
- name: thrift_server_8996
connect_timeout: 1s
type: strict_dns
lb_policy: round_robin
hosts:
- socket_address:
address: 127.0.0.1
port_value: 8996
dns_refresh_rate: 60s
admin:
access_log_path: "/dev/null"
address:
socket_address:
address: 0.0.0.0
port_value: 15001