Merge "Adjust rabbitmq probes to better reflect its actual state"
This commit is contained in:
commit
5a11226cb0
@ -20,5 +20,5 @@ if [ -f /tmp/rabbit-disable-liveness-probe ]; then
|
||||
exit 0
|
||||
else
|
||||
timeout 5 bash -c "true &>/dev/null </dev/tcp/${MY_POD_IP}/${PORT_AMPQ}"
|
||||
exec rabbitmqctl status
|
||||
exec rabbitmqctl node_health_check
|
||||
fi
|
||||
|
@ -19,5 +19,5 @@ set -e
|
||||
if [ -f /tmp/rabbit-disable-readiness ]; then
|
||||
exit 1
|
||||
else
|
||||
exec rabbitmqctl status
|
||||
exec rabbitmqctl node_health_check
|
||||
fi
|
||||
|
@ -217,7 +217,7 @@ spec:
|
||||
command:
|
||||
- /tmp/rabbitmq-readiness.sh
|
||||
livenessProbe:
|
||||
initialDelaySeconds: 30
|
||||
initialDelaySeconds: 60
|
||||
timeoutSeconds: 10
|
||||
exec:
|
||||
command:
|
||||
|
Loading…
Reference in New Issue
Block a user