1 From 132df9829fa4c697e0b9701871888708973f9123 Mon Sep 17 00:00:00 2001
2 From: Gerry Kopec <Gerry.Kopec@windriver.com>
3 Date: Fri, 16 Aug 2019 14:29:46 -0400
4 Subject: [PATCH] Enable override of rabbitmq probe parameters
6 Add variables for initial delay, period and timeout for rabbitmq
7 liveness and readiness probes.
9 Change-Id: I8d2685118eb4ce3b8c27952892f7ad553fc5de77
10 Signed-off-by: Gerry Kopec <Gerry.Kopec@windriver.com>
12 rabbitmq/templates/statefulset.yaml | 10 ++++++----
13 rabbitmq/values.yaml | 9 +++++++++
14 2 files changed, 15 insertions(+), 4 deletions(-)
16 diff --git a/rabbitmq/templates/statefulset.yaml b/rabbitmq/templates/statefulset.yaml
17 index e0e61e6..f71dc3e 100644
18 --- a/rabbitmq/templates/statefulset.yaml
19 +++ b/rabbitmq/templates/statefulset.yaml
20 @@ -200,14 +200,16 @@ spec:
21 value: {{ $envAll.Values.io_thread_pool.size | quote }}
24 - initialDelaySeconds: 10
26 + initialDelaySeconds: {{ $envAll.Values.pod.probes.readiness.initialDelaySeconds }}
27 + periodSeconds: {{ $envAll.Values.pod.probes.readiness.periodSeconds }}
28 + timeoutSeconds: {{ $envAll.Values.pod.probes.readiness.timeoutSeconds }}
31 - /tmp/rabbitmq-readiness.sh
33 - initialDelaySeconds: 30
35 + initialDelaySeconds: {{ $envAll.Values.pod.probes.liveness.initialDelaySeconds }}
36 + periodSeconds: {{ $envAll.Values.pod.probes.liveness.periodSeconds }}
37 + timeoutSeconds: {{ $envAll.Values.pod.probes.liveness.timeoutSeconds }}
40 - /tmp/rabbitmq-liveness.sh
41 diff --git a/rabbitmq/values.yaml b/rabbitmq/values.yaml
42 index 9cd3a91..2bae4cb 100644
43 --- a/rabbitmq/values.yaml
44 +++ b/rabbitmq/values.yaml
45 @@ -145,6 +145,15 @@ pod:
51 + initialDelaySeconds: 10
55 + initialDelaySeconds: 30