Merge "Fix etcd healthcheck"

This commit is contained in:
Zuul 2019-10-22 20:09:39 +00:00 committed by Gerrit Code Review
commit 1f34febc42
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,6 @@
#!/bin/bash
export ETCDCTL_API=3
etcdctl endpoint health | grep "is healthy"
export $(grep ETCD_LISTEN_CLIENT_URLS /etc/etcd/etcd.conf)
ETCDCTL_ENDPOINTS=$ETCD_LISTEN_CLIENT_URLS etcdctl endpoint health | grep -q "is healthy"
exit $?