-
Notifications
You must be signed in to change notification settings - Fork 0
/
envoy.yaml
executable file
·35 lines (34 loc) · 965 Bytes
/
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
static_resources:
listeners:
#@ for i in range(0,200):
#@ port = 10000+i
- name: #@ "ingress_listener_" + str(port)
address:
socket_address:
address: 0.0.0.0
port_value: #@ port
filter_chains:
- filters:
- name: envoy.filters.network.tcp_proxy
typed_config:
"@type": type.googleapis.com/envoy.extensions.filters.network.tcp_proxy.v3.TcpProxy
stat_prefix: ingress_tcp
cluster: #@ "google_cluster_" + str(i)
#@ end
clusters:
#@ for i in range(0,200):
- name: #@ "google_cluster_" + str(i)
connect_timeout: 10s
dns_refresh_rate: 180s
type: logical_dns
dns_lookup_family: V4_ONLY
load_assignment:
cluster_name: google_cluster
endpoints:
- lb_endpoints:
- endpoint:
address:
socket_address:
address: #@ "web-" + str(i) + ".echo.default.svc.cluster.local"
port_value: 5678
#@ end