Skip to content

Commit a358098

Browse files
committed
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
1 parent 25cbe96 commit a358098

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

install/kubernetes/github-actions-cache-server/values.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,11 +73,11 @@ resources:
7373

7474
livenessProbe:
7575
httpGet:
76-
path: /
76+
path: /health
7777
port: cache
7878
readinessProbe:
7979
httpGet:
80-
path: /
80+
path: /health
8181
port: cache
8282

8383
autoscaling:

routes/health.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export default defineEventHandler((event) => {
2+
setResponseStatus(event, 200)
3+
return 'healthy'
4+
})

0 commit comments

Comments
 (0)