initial commit with apps from course repo
This commit is contained in:
13
nexus3/probes/liveness.sh
Normal file
13
nexus3/probes/liveness.sh
Normal file
@@ -0,0 +1,13 @@
|
||||
#!/bin/sh
|
||||
|
||||
curl -siu admin:admin123 http://localhost:8081/service/metrics/healthcheck | grep healthy | grep true
|
||||
RESPONSE=$?
|
||||
|
||||
if [ "$RESPONSE" = "0" ] ; then
|
||||
echo "******** liveness is Alive ********"
|
||||
exit 0;
|
||||
else
|
||||
echo "******** liveness is Dead ********"
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user