From a3580985e8edfabad35b9ce702a4726b0bf07b9e Mon Sep 17 00:00:00 2001 From: Dawid Malinowski Date: Mon, 19 Jan 2026 11:37:15 +0100 Subject: [PATCH] feat: add dedicated /health endpoint for health checks - Add /health route that returns 'healthy' status - Update liveness and readiness probes to use /health instead of / Fixes #192 --- install/kubernetes/github-actions-cache-server/values.yaml | 4 ++-- routes/health.ts | 4 ++++ 2 files changed, 6 insertions(+), 2 deletions(-) create mode 100644 routes/health.ts diff --git a/install/kubernetes/github-actions-cache-server/values.yaml b/install/kubernetes/github-actions-cache-server/values.yaml index 6a5a770..cbda5ad 100644 --- a/install/kubernetes/github-actions-cache-server/values.yaml +++ b/install/kubernetes/github-actions-cache-server/values.yaml @@ -73,11 +73,11 @@ resources: livenessProbe: httpGet: - path: / + path: /health port: cache readinessProbe: httpGet: - path: / + path: /health port: cache autoscaling: diff --git a/routes/health.ts b/routes/health.ts new file mode 100644 index 0000000..d50affe --- /dev/null +++ b/routes/health.ts @@ -0,0 +1,4 @@ +export default defineEventHandler((event) => { + setResponseStatus(event, 200) + return 'healthy' +})