1 zkpod=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-message-router-zookeeper-[^[:space:]]*")
2 if [ -n "$zkpod" ]; then
3 if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $zkpod -- ps aux | grep -i zookeeper; then
4 echo Success. Zookeeper process is running. 2>&1
7 echo Failed. Zookeeper is not running. 2>&1
11 echo Failed. Zookeeper container is offline. 2>&1