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