Skip to content

armgit / TREK

Public Imported from GitHub
0

The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.

feat: make health probes configurable in Helm chart

Owen Holloway0454a383b3fd
diff --git a/charts/README.md b/charts/README.md
index 77feeaadf..48b341b6a 100644
--- a/charts/README.md
+++ b/charts/README.md
@@ -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
diff --git a/charts/trek/templates/deployment.yaml b/charts/trek/templates/deployment.yaml
index 6727b683f..cc903eab1 100644
--- a/charts/trek/templates/deployment.yaml
+++ b/charts/trek/templates/deployment.yaml
@@ -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 }}
diff --git a/charts/trek/values.yaml b/charts/trek/values.yaml
index 4af6bd9ba..c127e72fe 100644
--- a/charts/trek/values.yaml
+++ b/charts/trek/values.yaml
@@ -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