Skip to content

Commit

Permalink
Make liveness and readiness probes configurable (provectus#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
fbuetler committed Mar 25, 2024
1 parent 6996eab commit a79fa12
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 6 deletions.
16 changes: 10 additions & 6 deletions charts/kafka-ui/templates/deployment.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,11 @@ spec:
{{- if .Values.probes.useHttpsScheme }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.probes.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.probes.livenessProbe.timeoutSeconds }}
successThreshold: {{ .Values.probes.livenessProbe.successThreshold }}
failureThreshold: {{ .Values.probes.livenessProbe.failureThreshold }}
readinessProbe:
httpGet:
{{- $contextPath := .Values.envs.config.SERVER_SERVLET_CONTEXT_PATH | default "" | printf "%s/actuator/health" | urlParse }}
Expand All @@ -102,9 +104,11 @@ spec:
{{- if .Values.probes.useHttpsScheme }}
scheme: HTTPS
{{- end }}
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
initialDelaySeconds: {{ .Values.probes.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.probes.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.probes.readinessProbe.timeoutSeconds }}
successThreshold: {{ .Values.probes.readinessProbe.successThreshold }}
failureThreshold: {{ .Values.probes.readinessProbe.failureThreshold }}
resources:
{{- toYaml .Values.resources | nindent 12 }}
{{- if or .Values.yamlApplicationConfig .Values.volumeMounts .Values.yamlApplicationConfigConfigMap}}
Expand Down
12 changes: 12 additions & 0 deletions charts/kafka-ui/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,18 @@ annotations: {}
##
probes:
useHttpsScheme: false
livenessProbe:
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3
readinessProbe:
initialDelaySeconds: 60
periodSeconds: 30
timeoutSeconds: 10
successThreshold: 1
failureThreshold: 3

podSecurityContext:
{}
Expand Down

0 comments on commit a79fa12

Please sign in to comment.