Skip to content

Commit c211b04

Browse files
committed
add example config
Signed-off-by: Loong <[email protected]>
1 parent 782314a commit c211b04

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
static_resources:
2+
listeners:
3+
- address:
4+
socket_address:
5+
address: 0.0.0.0
6+
port_value: 10000
7+
connection_balance_config:
8+
extend_balance:
9+
name: envoy.network.connection_balance.dlb
10+
typed_config:
11+
"@type": type.googleapis.com/envoy.extensions.network.connection_balance.dlb.v3alpha.Dlb
12+
filter_chains:
13+
- filters:
14+
- name: envoy.filters.network.http_connection_manager
15+
typed_config:
16+
"@type": type.googleapis.com/envoy.extensions.filters.network.http_connection_manager.v3.HttpConnectionManager
17+
codec_type: AUTO
18+
stat_prefix: ingress_http
19+
route_config:
20+
name: local_route
21+
virtual_hosts:
22+
- name: backend
23+
domains:
24+
- "*"
25+
routes:
26+
- match:
27+
prefix: "/"
28+
route:
29+
cluster: service1
30+
http_filters:
31+
- name: envoy.filters.http.router
32+
typed_config:
33+
"@type": type.googleapis.com/envoy.extensions.filters.http.router.v3.Router
34+
35+
clusters:
36+
- name: service1
37+
load_assignment:
38+
cluster_name: service1
39+
endpoints:
40+
- lb_endpoints:
41+
- endpoint:
42+
address:
43+
socket_address:
44+
address: 127.0.0.1
45+
port_value: 12000

0 commit comments

Comments
 (0)