Add healthcheck script for etcd
This patch adds script for docker health check of etcd service. The script uses etcdctl control tool to check enpoint health. Change-Id: Idd759abc454b17f3798900c5bab9ef68899610d7
This commit is contained in:
parent
21eb3f6aeb
commit
c2d2f93d99
5
healthcheck/etcd
Normal file
5
healthcheck/etcd
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
export ETCDCTL_API=3
|
||||||
|
etcdctl endpoint health | grep "is healthy"
|
||||||
|
exit $?
|
Loading…
x
Reference in New Issue
Block a user