feat(deploy): add healthchecks to docker, docker compose, podman quadlet, and helm chart (#1137)
This commit is contained in:
@@ -75,6 +75,10 @@ spec:
|
||||
name: {{ .Release.Name }}-mariadb
|
||||
{{- end }}
|
||||
key: mariadb-password
|
||||
{{- with .Values.startupProbe }}
|
||||
startupProbe:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
{{- end }}
|
||||
{{- with .Values.livenessProbe }}
|
||||
livenessProbe:
|
||||
{{- toYaml . | nindent 12 }}
|
||||
|
||||
@@ -89,13 +89,28 @@ resources: {}
|
||||
# cpu: 100m
|
||||
# memory: 128Mi
|
||||
|
||||
# # This is to setup the liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||
# This is to setup the startup, liveness and readiness probes more information can be found here: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/
|
||||
startupProbe:
|
||||
httpGet:
|
||||
path: /api/v1/healthcheck
|
||||
port: http
|
||||
failureThreshold: 5
|
||||
periodSeconds: 30
|
||||
timeoutSeconds: 5
|
||||
livenessProbe:
|
||||
tcpSocket:
|
||||
httpGet:
|
||||
path: /api/v1/healthcheck
|
||||
port: http
|
||||
failureThreshold: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
readinessProbe:
|
||||
tcpSocket:
|
||||
httpGet:
|
||||
path: /api/v1/healthcheck
|
||||
port: http
|
||||
failureThreshold: 5
|
||||
periodSeconds: 10
|
||||
timeoutSeconds: 5
|
||||
# If you want to bring your own persistence (such as a hostPath),
|
||||
# disable these and do so in extraVolumes/extraVolumeMounts
|
||||
persistence:
|
||||
|
||||
Reference in New Issue
Block a user