Merge "Add configurable probes to rabbitmq"

This commit is contained in:
Zuul 2024-05-02 16:19:53 +00:00 committed by Gerrit Code Review
commit 07c7212fe2
4 changed files with 34 additions and 14 deletions

View File

@ -12,9 +12,9 @@
---
apiVersion: v1
appVersion: v3.9.0
appVersion: v3.12.0
description: OpenStack-Helm RabbitMQ
name: rabbitmq
version: 0.1.34
version: 0.1.35
home: https://github.com/rabbitmq/rabbitmq-server
...

View File

@ -18,6 +18,17 @@ limitations under the License.
{{- $_ := set . "deployment_name" .Release.Name }}
{{- end }}
{{- define "rabbitmqReadinessProbeTemplate" }}
exec:
command:
- /tmp/rabbitmq-readiness.sh
{{- end }}
{{- define "rabbitmqLivenessProbeTemplate" }}
exec:
command:
- /tmp/rabbitmq-liveness.sh
{{- end }}
{{/*
(aostapenko) rounds cpu limit in any permissible format to integer value (min 1)
"100m" -> 1
@ -237,18 +248,8 @@ spec:
- name: RABBITMQ_FEATURE_FLAGS
value: "{{ .Values.conf.feature_flags }}"
{{- end }}
readinessProbe:
initialDelaySeconds: 10
timeoutSeconds: 10
exec:
command:
- /tmp/rabbitmq-readiness.sh
livenessProbe:
initialDelaySeconds: 60
timeoutSeconds: 10
exec:
command:
- /tmp/rabbitmq-liveness.sh
{{ dict "envAll" $envAll "component" "rabbitmq" "container" "rabbitmq" "type" "readiness" "probeTemplate" (include "rabbitmqReadinessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
{{ dict "envAll" $envAll "component" "rabbitmq" "container" "rabbitmq" "type" "liveness" "probeTemplate" (include "rabbitmqLivenessProbeTemplate" $envAll | fromYaml) | include "helm-toolkit.snippets.kubernetes_probe" | trim | indent 10 }}
lifecycle:
preStop:
exec:

View File

@ -68,6 +68,24 @@ pod:
initialDelaySeconds: 120
periodSeconds: 90
timeoutSeconds: 5
rabbitmq:
rabbitmq:
readiness:
enabled: true
params:
initialDelaySeconds: 10
periodSeconds: 10
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
liveness:
enabled: true
params:
initialDelaySeconds: 60
periodSeconds: 10
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 5
security_context:
exporter:
pod:

View File

@ -34,4 +34,5 @@ rabbitmq:
- 0.1.32 Enable addition of default consumer prefetch count
- 0.1.33 Bump RabbitMQ image version to 3.13.0
- 0.1.34 Add 2024.1 overrides
- 0.1.35 Add configurable probes to rabbitmq container
...