From b9d88f41b95257aa3cdef2a38179a4a4c5dbfa8b Mon Sep 17 00:00:00 2001 From: Ruben Hensen Date: Sun, 25 Oct 2026 04:19:29 +0100 Subject: [PATCH] gitea: add health probes --- gitea/gitea-deployment.yaml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/gitea/gitea-deployment.yaml b/gitea/gitea-deployment.yaml index 607a820..7fc6665 100644 --- a/gitea/gitea-deployment.yaml +++ b/gitea/gitea-deployment.yaml @@ -50,6 +50,21 @@ spec: - containerPort: 3000 name: http protocol: TCP + # /api/healthz checks the database and the cache. + readinessProbe: + httpGet: + path: /api/healthz + port: http + periodSeconds: 10 + timeoutSeconds: 5 + livenessProbe: + httpGet: + path: /api/healthz + port: http + initialDelaySeconds: 60 + periodSeconds: 30 + timeoutSeconds: 10 + failureThreshold: 5 volumeMounts: - mountPath: /data name: data