Skip to content

PostgreSQL backup tool with Point-In-Time-Recovery and restore verification

fix(helm): use exec healthcheck command instead of httpGet

Zekeriya Akgul2b7cbf73c6a9
diff --git a/deploy/helm/templates/statefulset.yaml b/deploy/helm/templates/statefulset.yaml
index e5065c8e..0d28b725 100644
--- a/deploy/helm/templates/statefulset.yaml
+++ b/deploy/helm/templates/statefulset.yaml
@@ -91,8 +91,13 @@ spec:
{{- toYaml .Values.resources | nindent 12 }}
{{- if .Values.livenessProbe.enabled }}
livenessProbe:
+ {{- if .Values.livenessProbe.exec }}
+ exec:
+ {{- toYaml .Values.livenessProbe.exec | nindent 14 }}
+ {{- else if .Values.livenessProbe.httpGet }}
httpGet:
{{- toYaml .Values.livenessProbe.httpGet | nindent 14 }}
+ {{- end }}
initialDelaySeconds: {{ .Values.livenessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.livenessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.livenessProbe.timeoutSeconds }}
@@ -100,8 +105,13 @@ spec:
{{- end }}
{{- if .Values.readinessProbe.enabled }}
readinessProbe:
+ {{- if .Values.readinessProbe.exec }}
+ exec:
+ {{- toYaml .Values.readinessProbe.exec | nindent 14 }}
+ {{- else if .Values.readinessProbe.httpGet }}
httpGet:
{{- toYaml .Values.readinessProbe.httpGet | nindent 14 }}
+ {{- end }}
initialDelaySeconds: {{ .Values.readinessProbe.initialDelaySeconds }}
periodSeconds: {{ .Values.readinessProbe.periodSeconds }}
timeoutSeconds: {{ .Values.readinessProbe.timeoutSeconds }}
diff --git a/deploy/helm/values.yaml b/deploy/helm/values.yaml
index 49d7609a..532f628f 100644
--- a/deploy/helm/values.yaml
+++ b/deploy/helm/values.yaml
@@ -128,12 +128,12 @@ route:
timeouts: {}
# Health checks configuration
-# Note: The application only has /api/v1/system/health endpoint
livenessProbe:
enabled: true
- httpGet:
- path: /api/v1/system/health
- port: 4005
+ exec:
+ command:
+ - databasus
+ - healthcheck
initialDelaySeconds: 30
periodSeconds: 10
timeoutSeconds: 5
@@ -141,9 +141,10 @@ livenessProbe:
readinessProbe:
enabled: true
- httpGet:
- path: /api/v1/system/health
- port: 4005
+ exec:
+ command:
+ - databasus
+ - healthcheck
initialDelaySeconds: 10
periodSeconds: 5
timeoutSeconds: 3