You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is something we have done in CI, when dealing with docker's extra local interfaces, so somthing like:
#!/bin/bash
IP_ADDR=$(curl --retry 60 -fks http://169.254.169.254/latest/dynamic/instance-identity/document | jq .privateIp' -r)
# Multiple IPs cause consul to have issues, specify which to bind to
if [ "${IP_ADDR:-0}" != "0" ]; then
cat << EOF | tee /etc/consul/bind.json
{
"bind_addr": "${IP_ADDR}"
}
EOF
fi
Would to the trick
The text was updated successfully, but these errors were encountered:
This is something we have done in CI, when dealing with docker's extra local interfaces, so somthing like:
Would to the trick
The text was updated successfully, but these errors were encountered: