blob: f8f40b9f8333f5865f9e2f8aa89b12aa291cb7c8 [file] [log] [blame]
Priyanka9eb4adc2018-05-22 10:53:36 +00001zkpod=$(/consul/bin/kubectl -n {{ include "common.namespace" . }} get pod | grep -o "[^[:space:]]*-message-router-zookeeper-[^[:space:]]*")
jasmineWen85d9d732018-03-06 16:13:35 +00002if [ -n "$zkpod" ]; then
Priyanka9eb4adc2018-05-22 10:53:36 +00003 if /consul/bin/kubectl -n {{ include "common.namespace" . }} exec -it $zkpod -- ps aux | grep -i zookeeper; then
jasmineWen85d9d732018-03-06 16:13:35 +00004 echo Success. Zookeeper process is running. 2>&1
5 exit 0
6 else
7 echo Failed. Zookeeper is not running. 2>&1
8 exit 1
9 fi
10else
11 echo Failed. Zookeeper container is offline. 2>&1
12 exit 1
13fi