From 4136286a1ab24e87ab24433ff0535fb0de1184da Mon Sep 17 00:00:00 2001 From: perf3ct Date: Thu, 5 Oct 2023 08:55:31 -0700 Subject: [PATCH] add api pod probe --- templates/api.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/templates/api.yaml b/templates/api.yaml index 0ce46b2..9226a4f 100644 --- a/templates/api.yaml +++ b/templates/api.yaml @@ -22,6 +22,21 @@ persistence: mountPath: /etc/vikunja/config.yml subPath: config.yml +probes: + liveness: &probes + enabled: true + custom: true + spec: + httpGet: + path: /api/v1 + port: http + initialDelaySeconds: 0 + periodSeconds: 10 + timeoutSeconds: 1 + failureThreshold: 3 + readiness: *probes + startup: + enabled: false env: {{ if .Values.redis.enabled }}