The script responsible for determining the public IP of the node assumes that if a node is detected as running on EC2, it's got a public IP. That assumption isn't necessarily correct!
This change helps make it work again:
if network_is_ec2; then
ip=$(curl -fs http://169.254.169.254/latest/meta-data/public-ipv4 2>/dev/null)
if [ $? -gt 0 ]; then
curl -fs http://169.254.169.254/latest/meta-data/local-ipv4
else
echo "$ip"
fi
The script responsible for determining the public IP of the node assumes that if a node is detected as running on EC2, it's got a public IP. That assumption isn't necessarily correct!
This change helps make it work again: