Skip to content

Commit

Permalink
probes
Browse files Browse the repository at this point in the history
  • Loading branch information
james-otten committed Nov 8, 2024
1 parent 54cbd5b commit 0e10203
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions bookstack-helm/templates/db.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -64,17 +64,25 @@ spec:
volumeMounts:
- name: mysql-data-vol
mountPath: /config

{{- if .Values.bookstack.db.enableReadinessProbe -}}
{{- if .Values.bookstack.db.enableReadinessProbe }}
readinessProbe:
exec:
command:
- sh
- "-c"
- |
mysql -uroot -p$MYSQL_ROOT_PASSWORD -e 'SELECT 1'
- "mysql -uroot -p$MYSQL_ROOT_PASSWORD -e 'SELECT 1'"
initialDelaySeconds: {{ .Values.bookstack.db.readinessProbeInitialDelaySeconds }}
{{- end }}
{{- if .Values.bookstack.db.enableLivenessProbe }}
livenessProbe:
exec:
command:
- sh
- "-c"
- "mysql -uroot -p$MYSQL_ROOT_PASSWORD -e 'SELECT 1'"
initialDelaySeconds: {{ .Values.bookstack.db.livenessProbeInitialDelaySeconds }}
periodSeconds: {{ .Values.bookstack.db.livenessProbePeriodSeconds }}
{{- end }}
resources:
{{- toYaml .Values.bookstack.db.resources | nindent 12 }}
{{- with .Values.volumeMounts }}
Expand Down

0 comments on commit 0e10203

Please sign in to comment.