Skip to content

Commit b98e0d0

Browse files
committed
Add keepalive configs as templated values
1 parent c6ae86d commit b98e0d0

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

router/src/main/resources/Dockerfile

+4
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ ENV ROUTER_LABEL="Default"
4747
ENV ROUTER_PRIVATE_KEY_PATH=/home/wso2/security/keystore/mg.key
4848
ENV ROUTER_PUBLIC_CERT_PATH=/home/wso2/security/keystore/mg.pem
4949

50+
ENV KEEPALIVE_PROBES=3
51+
ENV KEEPALIVE_TIMEOUT=60
52+
ENV KEEPALIVE_INTERVAL=30
53+
5054
ENV ADAPTER_HOST=adapter
5155
ENV ADAPTER_PORT=18000
5256
ENV ADAPTER_CA_CERT_PATH=/home/wso2/security/truststore/mg.pem

router/src/main/resources/envoy.yaml.template

+3-3
Original file line numberDiff line numberDiff line change
@@ -42,9 +42,9 @@ static_resources:
4242
connect_timeout: 1s
4343
upstream_connection_options:
4444
tcp_keepalive:
45-
keepalive_probes: 3
46-
keepalive_time: 300
47-
keepalive_interval: 30
45+
keepalive_probes: '${KEEPALIVE_PROBES}'
46+
keepalive_time: '${KEEPALIVE_TIMEOUT}'
47+
keepalive_interval: '${KEEPALIVE_INTERVAL}'
4848
load_assignment:
4949
cluster_name: xds_cluster
5050
endpoints:

0 commit comments

Comments
 (0)