Merge "Adjust rabbitmq probes to better reflect its actual state"
This commit is contained in:
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user