Commit b203bdc
flowcore-platform
fix: add /health endpoint for Kubernetes probes
Kubernetes probes were checking /health but the endpoint was at /api/health,
causing readiness probe failures and 502 errors. Added new /health route at
the root to match probe configuration and excluded it from middleware.
Changes:
- Add app/health/route.ts for Kubernetes probes at /health
- Exclude /health from middleware matcher (in addition to /api/health)
- Fixes 502 Bad Gateway by properly responding to health checks1 parent d460a9f commit b203bdc
2 files changed
+19
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
75 | 75 | | |
76 | 76 | | |
77 | 77 | | |
78 | | - | |
| 78 | + | |
79 | 79 | | |
80 | 80 | | |
0 commit comments