blob: a109032d3bbbb6355bbc46e8ad90fe09103ade5f [file] [log] [blame]
jasmineWen85d9d732018-03-06 16:13:35 +00001kafkapod=$(/consul/bin/kubectl -n {{ .Values.nsPrefix }} get pod | grep -o "message-router-global-kafka-[^[:space:]]*")
2if [ -n "$kafkapod" ]; then
3 if /consul/bin/kubectl -n {{ .Values.nsPrefix }} exec -it $kafkapod -- ps ef | grep -i kafka; then
4 echo Success. Kafka process is running. 2>&1
5 exit 0
6 else
7 echo Failed. Kafka is not running. 2>&1
8 exit 1
9 fi
10else
11 echo Failed. Kafka container is offline. 2>&1
12 exit 1
13fi