feat: make health probes configurable in Helm chart

This commit is contained in:
Owen Holloway
2026-09-05 12:14:19 +10:00
committed by Maurice
parent 18684f20f3
commit 0454a383b3
3 changed files with 18 additions and 11 deletions
+1 -1
View File
@@ -8,7 +8,7 @@ This is a minimal Helm chart for deploying the TREK app.
- Optional persistent storage for `/app/data` and `/app/uploads`
- Configurable environment variables and secrets
- Optional generic Ingress support
- Health checks on `/api/health`
- Configurable health checks (liveness/readiness probes) on `/api/health`
## Helm Repository
+2 -10
View File
@@ -81,17 +81,9 @@ spec:
- name: uploads
mountPath: /app/uploads
livenessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 15
periodSeconds: 30
{{- toYaml .Values.probes.liveness | nindent 12 }}
readinessProbe:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
{{- toYaml .Values.probes.readiness | nindent 12 }}
volumes:
- name: data
{{- if .Values.persistence.enabled }}
+15
View File
@@ -134,6 +134,21 @@ persistence:
existingClaim: ""
annotations: {}
# Readiness and liveness probes
probes:
liveness:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 15
periodSeconds: 30
readiness:
httpGet:
path: /api/health
port: 3000
initialDelaySeconds: 5
periodSeconds: 10
resources:
requests:
cpu: 100m