Update RabbitMQ probes

The current health check that is used for readiness and liveness
probes is considered intrusive and is prompt to produce false
positives[0]. The command is also deprecated and will be removed
in future version.  Updating the probes based on current
recommenation from community[1].

Ref:
[0] https://www.rabbitmq.com/monitoring.html#deprecations
[1] https://www.rabbitmq.com/monitoring.html#health-checks

Change-Id: I83750731150ff9a276f59e3c1288129581fceba5
This commit is contained in:
Roy Tang 2021-08-13 19:08:21 -04:00
parent 43ca88c91f
commit 3a76480c00
4 changed files with 4 additions and 4 deletions

View File

@ -15,6 +15,6 @@ apiVersion: v1
appVersion: v3.7.26
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.13
version: 0.1.14
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -19,6 +19,5 @@ set -e
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 node_health_check
exec rabbitmq-diagnostics -q check_port_connectivity
fi

View File

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

View File

@ -13,4 +13,5 @@ rabbitmq:
- 0.1.11 Add TLS support for helm test
- 0.1.12 Added helm hook post-install and post-upgrade for rabbitmq wait cluster job
- 0.1.13 Add prestop action and version 3.8.x upgrade prep
- 0.1.14 Update readiness and liveness probes
...