mirror of
https://github.com/bitnami/containers.git
synced 2026-10-17 18:23:14 +02:00
Fix cluster mismatch when startup (#44)
Signed-off-by: shaoyue.chen <shaoyue.chen@zilliz.com>
This commit is contained in:
committed by
Bitnami Containers
parent
e2d3e5d73b
commit
123be37878
@@ -20,12 +20,9 @@ set -o pipefail
|
||||
if [[ -f "$ETCD_NEW_MEMBERS_ENV_FILE" ]]; then
|
||||
debug "Loading env vars of existing cluster"
|
||||
. "$ETCD_NEW_MEMBERS_ENV_FILE"
|
||||
else
|
||||
# We do not rely on the original value of ETCD_INITIAL_CLUSTER even
|
||||
# when bootstrapping a new cluster since we cannot assume
|
||||
# that all nodes will come-up healthy
|
||||
ETCD_INITIAL_CLUSTER="$(recalculate_initial_cluster)"
|
||||
export ETCD_INITIAL_CLUSTER
|
||||
# We rely on the original value of ETCD_INITIAL_CLUSTER
|
||||
# when bootstrapping a new cluster since
|
||||
# we need all intial members to calcualte a same cluster_id
|
||||
fi
|
||||
|
||||
declare -a cmd=("etcd")
|
||||
|
||||
@@ -20,12 +20,9 @@ set -o pipefail
|
||||
if [[ -f "$ETCD_NEW_MEMBERS_ENV_FILE" ]]; then
|
||||
debug "Loading env vars of existing cluster"
|
||||
. "$ETCD_NEW_MEMBERS_ENV_FILE"
|
||||
else
|
||||
# We do not rely on the original value of ETCD_INITIAL_CLUSTER even
|
||||
# when bootstrapping a new cluster since we cannot assume
|
||||
# that all nodes will come-up healthy
|
||||
ETCD_INITIAL_CLUSTER="$(recalculate_initial_cluster)"
|
||||
export ETCD_INITIAL_CLUSTER
|
||||
# We rely on the original value of ETCD_INITIAL_CLUSTER
|
||||
# when bootstrapping a new cluster since
|
||||
# we need all intial members to calcualte a same cluster_id
|
||||
fi
|
||||
|
||||
declare -a cmd=("etcd")
|
||||
|
||||
@@ -21,11 +21,9 @@ if [[ -f "$ETCD_NEW_MEMBERS_ENV_FILE" ]]; then
|
||||
debug "Loading env vars of existing cluster"
|
||||
. "$ETCD_NEW_MEMBERS_ENV_FILE"
|
||||
else
|
||||
# We do not rely on the original value of ETCD_INITIAL_CLUSTER even
|
||||
# when bootstrapping a new cluster since we cannot assume
|
||||
# that all nodes will come-up healthy
|
||||
ETCD_INITIAL_CLUSTER="$(recalculate_initial_cluster)"
|
||||
export ETCD_INITIAL_CLUSTER
|
||||
# We rely on the original value of ETCD_INITIAL_CLUSTER
|
||||
# when bootstrapping a new cluster since
|
||||
# we need all intial members to calcualte a same cluster_id
|
||||
fi
|
||||
|
||||
declare -a cmd=("etcd")
|
||||
|
||||
Reference in New Issue
Block a user