tripleo-common/healthcheck/etcd

7 lines
191 B
Bash
Executable File

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