We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ea372c commit f85190dCopy full SHA for f85190d
ansible/files/start-envoy.sh
@@ -1,5 +1,12 @@
1
#!/usr/bin/env bash
2
set -eou pipefail
3
+
4
+if [[ $(cat /sys/module/ipv6/parameters/disable) = 1 ]]; then
5
+ sed -i -e "s/address: '::'/address: '0.0.0.0'/" -e 's/ipv4_compat: true/ipv4_compat: false/' /etc/envoy/lds.yaml
6
+else
7
+ sed -i -e "s/address: '0.0.0.0'/address: '::'/" -e 's/ipv4_compat: false/ipv4_compat: true/' /etc/envoy/lds.yaml
8
+fi
9
10
# Workaround using `tee` to get `/dev/stdout` access logging to work, see:
11
# https://github.com/envoyproxy/envoy/issues/8297#issuecomment-620659781
-exec /opt/envoy --config-path /etc/envoy/envoy.yaml --restart-epoch "$RESTART_EPOCH" 2>&1 | tee
12
+exec /opt/envoy --config-path /etc/envoy/envoy.yaml --restart-epoch "${RESTART_EPOCH}" 2>&1 | tee
0 commit comments