blob: 9a4b4df28fb82eeac52d1b0b6a7be9067104fa31 [file] [log] [blame]
jasmineWen85d9d732018-03-06 16:13:35 +00001
2NAME=$(/consul/bin/kubectl -n {{ .Values.nsPrefix }} get pod | grep -o "aai-model-loader[^[:space:]]*")
3
4if [ -n "$NAME" ]; then
5 if /consul/bin/kubectl -n {{ .Values.nsPrefix }} exec -it $NAME -- ps -efww | grep 'java' | grep 'model-loader' > /dev/null; then
6
7 echo Success. Model Loader process is running. 2>&1
8 exit 0
9 else
10 echo Failed. Model Loader process is not running. 2>&1
11 exit 1
12 fi
13else
14 echo Failed. Model Loader container is offline. 2>&1
15 exit 1
16fi