From c5428a9429f518e33ad03585ea064beffef02ec7 Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Wed, 28 Aug 2019 13:22:22 -0500 Subject: [PATCH] RabbitMQ: Add liveness probe to check ampq port open This PS adds a check that the ampq port is open. Change-Id: I79c298f50c67f4b7293e6767fc9c10a66aa7dcf8 Signed-off-by: Pete Birley --- rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl | 1 + rabbitmq/templates/statefulset.yaml | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl index bfb2f77b1..b6a8e841e 100644 --- a/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl +++ b/rabbitmq/templates/bin/_rabbitmq-liveness.sh.tpl @@ -21,5 +21,6 @@ set -e if [ -f /tmp/rabbit-disable-liveness-probe ]; then exit 0 else + timeout 5 bash -c "true &>/dev/null