Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Etcd Cluster Health for Yoda Proxy #29

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion bin/supervisord-wrapper.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ HOST_IP="${HOST_IP:-127.0.0.1}"
cat <<END>> /etc/profile.d/cluster-deployer-env.sh
export HOST_IP='${HOST_IP}'
export ETCD_URL='${ETCD_URL:-${HOST_IP}:4001}'
export ETCDCTL="${ETCDCTL:-etcdctl --peers $ETCD_URL}"
export ETCD_PROXY_BASE='${ETCD_PROXY_BASE:-/yoda}'
export PROXY_HOST='${PROXY_HOST:-yoda.local.sh}'
export SYNC_CERTS='${SYNC_CERTS:-false}'
Expand All @@ -18,5 +19,6 @@ if [ ! -e /dev/log ]; then
service rsyslog start
fi

$ETCDCTL cluster-health

/bin/bash -le -c "/usr/local/bin/supervisord -c /etc/supervisor/supervisord.conf"
/bin/bash -le -c "/usr/local/bin/supervisord -c /etc/supervisor/supervisord.conf"