blob: 47c42d54efb4659d1a9243aaede80853e183cdc3 [file] [log] [blame]
jasmineWen85d9d732018-03-06 16:13:35 +00001zkpod=$(/consul/bin/kubectl -n {{ .Values.nsPrefix }} get pod | grep -o "message-router-zookeeper-[^[:space:]]*")
2if [ -n "$zkpod" ]; then
3 if /consul/bin/kubectl -n {{ .Values.nsPrefix }} exec -it $zkpod -- ps ef | grep -i zookeeper; then
4 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