-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.jsonnet
42 lines (42 loc) · 1.14 KB
/
bootstrap.jsonnet
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
function(ads_host="envoycontroller",
ads_port=8080,
ads_cluster="ads",
id="unknown-id")
{
node: {
id: id,
cluster: "unknown-cluster",
},
dynamic_resources: {
lds_config: { ads: {} },
cds_config: { ads: {} },
ads_config: {
api_type: "GRPC",
cluster_names: [ads_cluster],
},
},
static_resources: {
clusters: [{
name: ads_cluster,
connect_timeout: "5s",
type: "LOGICAL_DNS",
hosts: [{
socket_address: {
address: ads_host,
port_value: ads_port,
},
}],
lb_policy: "ROUND_ROBIN",
http2_protocol_options: {},
}],
},
admin: {
access_log_path: "/dev/null",
address: {
socket_address: {
address: "127.0.0.1",
port_value: 15000,
},
},
},
}