blob: fb34057bfca68d219887d6ed8497e07752c24db6 [file] [log] [blame]
zkpod=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "message-router-zookeeper-[^[:space:]]*")
if [ -n "$zkpod" ]; then
if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $zkpod -- ps ef | grep -i zookeeper; then
echo Success. Zookeeper process is running. 2>&1
exit 0
else
echo Failed. Zookeeper is not running. 2>&1
exit 1
fi
else
echo Failed. Zookeeper container is offline. 2>&1
exit 1
fi