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:
Martin Mágr 2018-02-09 14:01:35 +01:00
parent 21eb3f6aeb
commit c2d2f93d99
1 changed files with 5 additions and 0 deletions

5
healthcheck/etcd Normal file
View File

@ -0,0 +1,5 @@
#!/bin/bash
export ETCDCTL_API=3
etcdctl endpoint health | grep "is healthy"
exit $?