mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-03 19:42:15 +02:00
fix(dev-db/etcd): listen on 0.0.0.0:4001
this fixes a regression where etcd no longer listens on 127.0.0.1 and the public ip. Fix this up because etcd needs to listen on both for user convienence and for other cluster members to talk to it. TODO: Add 127.0.0.1 test to ami test.
This commit is contained in:
parent
419ce7a477
commit
97c626a8e7
@ -16,7 +16,7 @@ BOOTSTRAP="/var/run/etcd/bootstrap.config"
|
|||||||
|
|
||||||
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
[ ! -e $BOOTSTRAP ] && echo bootstrap config missing && exit 1
|
||||||
|
|
||||||
CLUSTER_ARGS="-n $MY_IP -c $MY_IP:4001 -s $MY_IP:7001"
|
CLUSTER_ARGS="-n $MY_IP -c 0.0.0.0:4001 -s 0.0.0.0:7001"
|
||||||
|
|
||||||
# strip blank lines
|
# strip blank lines
|
||||||
IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//')
|
IPS=$(grep -v $MY_IP $BOOTSTRAP|grep -v '^\n$' |sed 's/$/:7001/'|tr '\n' ','|sed 's/^,//'|sed 's/,$//')
|
||||||
|
Loading…
x
Reference in New Issue
Block a user