Merge "Adjust rabbitmq probes to better reflect its actual state"

This commit is contained in:
Zuul 2020-07-10 17:18:12 +00:00 committed by Gerrit Code Review
commit 5a11226cb0
3 changed files with 3 additions and 3 deletions

View File

@ -20,5 +20,5 @@ if [ -f /tmp/rabbit-disable-liveness-probe ]; then
exit 0 exit 0
else else
timeout 5 bash -c "true &>/dev/null </dev/tcp/${MY_POD_IP}/${PORT_AMPQ}" timeout 5 bash -c "true &>/dev/null </dev/tcp/${MY_POD_IP}/${PORT_AMPQ}"
exec rabbitmqctl status exec rabbitmqctl node_health_check
fi fi

View File

@ -19,5 +19,5 @@ set -e
if [ -f /tmp/rabbit-disable-readiness ]; then if [ -f /tmp/rabbit-disable-readiness ]; then
exit 1 exit 1
else else
exec rabbitmqctl status exec rabbitmqctl node_health_check
fi fi

View File

@ -217,7 +217,7 @@ spec:
command: command:
- /tmp/rabbitmq-readiness.sh - /tmp/rabbitmq-readiness.sh
livenessProbe: livenessProbe:
initialDelaySeconds: 30 initialDelaySeconds: 60
timeoutSeconds: 10 timeoutSeconds: 10
exec: exec:
command: command: