Skip to content

Commit a79fa12

Browse files
committed
Make liveness and readiness probes configurable (provectus#29)
1 parent 6996eab commit a79fa12

File tree

2 files changed

+22
-6
lines changed

2 files changed

+22
-6
lines changed

charts/kafka-ui/templates/deployment.yaml

+10-6
Original file line numberDiff line numberDiff line change
@@ -91,9 +91,11 @@ spec:
9191
{{- if .Values.probes.useHttpsScheme }}
9292
scheme: HTTPS
9393
{{- end }}
94-
initialDelaySeconds: 60
95-
periodSeconds: 30
96-
timeoutSeconds: 10
94+
initialDelaySeconds: {{ .Values.probes.livenessProbe.initialDelaySeconds }}
95+
periodSeconds: {{ .Values.probes.livenessProbe.periodSeconds }}
96+
timeoutSeconds: {{ .Values.probes.livenessProbe.timeoutSeconds }}
97+
successThreshold: {{ .Values.probes.livenessProbe.successThreshold }}
98+
failureThreshold: {{ .Values.probes.livenessProbe.failureThreshold }}
9799
readinessProbe:
98100
httpGet:
99101
{{- $contextPath := .Values.envs.config.SERVER_SERVLET_CONTEXT_PATH | default "" | printf "%s/actuator/health" | urlParse }}
@@ -102,9 +104,11 @@ spec:
102104
{{- if .Values.probes.useHttpsScheme }}
103105
scheme: HTTPS
104106
{{- end }}
105-
initialDelaySeconds: 60
106-
periodSeconds: 30
107-
timeoutSeconds: 10
107+
initialDelaySeconds: {{ .Values.probes.readinessProbe.initialDelaySeconds }}
108+
periodSeconds: {{ .Values.probes.readinessProbe.periodSeconds }}
109+
timeoutSeconds: {{ .Values.probes.readinessProbe.timeoutSeconds }}
110+
successThreshold: {{ .Values.probes.readinessProbe.successThreshold }}
111+
failureThreshold: {{ .Values.probes.readinessProbe.failureThreshold }}
108112
resources:
109113
{{- toYaml .Values.resources | nindent 12 }}
110114
{{- if or .Values.yamlApplicationConfig .Values.volumeMounts .Values.yamlApplicationConfigConfigMap}}

charts/kafka-ui/values.yaml

+12
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,18 @@ annotations: {}
7777
##
7878
probes:
7979
useHttpsScheme: false
80+
livenessProbe:
81+
initialDelaySeconds: 60
82+
periodSeconds: 30
83+
timeoutSeconds: 10
84+
successThreshold: 1
85+
failureThreshold: 3
86+
readinessProbe:
87+
initialDelaySeconds: 60
88+
periodSeconds: 30
89+
timeoutSeconds: 10
90+
successThreshold: 1
91+
failureThreshold: 3
8092

8193
podSecurityContext:
8294
{}

0 commit comments

Comments
 (0)