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.
2 parents b9f00f4 + 19279b0 commit d9d10dfCopy full SHA for d9d10df
1 file changed
lib/etcd3
@@ -53,9 +53,9 @@ function start_etcd3 {
53
cmd+=" --initial-cluster-state new --initial-cluster-token etcd-cluster-01"
54
cmd+=" --initial-cluster $HOSTNAME=http://$SERVICE_HOST:2380"
55
cmd+=" --initial-advertise-peer-urls http://$SERVICE_HOST:2380"
56
- cmd+=" --advertise-client-urls http://$SERVICE_HOST:$ETCD_PORT"
+ cmd+=" --advertise-client-urls http://${HOST_IP}:$ETCD_PORT"
57
cmd+=" --listen-peer-urls http://0.0.0.0:2380 "
58
- cmd+=" --listen-client-urls http://$SERVICE_HOST:$ETCD_PORT"
+ cmd+=" --listen-client-urls http://${HOST_IP}:$ETCD_PORT"
59
60
local unitfile="$SYSTEMD_DIR/$ETCD_SYSTEMD_SERVICE"
61
write_user_unit_file $ETCD_SYSTEMD_SERVICE "$cmd" "" "root"
0 commit comments