fix: add /healthz endpoint to prevent K8s crash loop
- Added dedicated /healthz route returning 200 OK - Skip API health check in hooks.server.ts for /healthz path - Updated K8s liveness/readiness probes to use /healthz instead of /login - The /login probe was returning 503 when the API was unreachable, causing Kubernetes to kill and restart the pod in a loop
This commit is contained in:
@@ -35,15 +35,17 @@ spec:
|
||||
- containerPort: 3000
|
||||
livenessProbe:
|
||||
httpGet:
|
||||
path: /login
|
||||
path: /healthz
|
||||
port: 3000
|
||||
initialDelaySeconds: 5
|
||||
periodSeconds: 15
|
||||
failureThreshold: 3
|
||||
readinessProbe:
|
||||
httpGet:
|
||||
path: /login
|
||||
path: /healthz
|
||||
port: 3000
|
||||
initialDelaySeconds: 3
|
||||
periodSeconds: 5
|
||||
failureThreshold: 2
|
||||
imagePullSecrets:
|
||||
- name: github-container-registry
|
||||
|
||||
Reference in New Issue
Block a user