/readyz and graceful shutdown #77

Open
opened 2026-11-27 16:43:20 -05:00 by bobby · 0 comments
Owner

Part of #73 (spec: #72)

What to build

Kubernetes can tell when a pod is ready and drain it cleanly. /readyz on :8081 passes after startup, never checks the database, and starts failing on SIGTERM, followed by a ~5 s drain before the process exits.

Acceptance criteria

  • /readyz returns 200 once startup completes
  • After SIGTERM, /readyz returns 503 while in-flight API requests still complete during the drain
  • /readyz never touches the database
Part of #73 (spec: #72) ## What to build Kubernetes can tell when a pod is ready and drain it cleanly. `/readyz` on `:8081` passes after startup, never checks the database, and starts failing on SIGTERM, followed by a ~5 s drain before the process exits. ## Acceptance criteria - [ ] `/readyz` returns `200` once startup completes - [ ] After SIGTERM, `/readyz` returns `503` while in-flight API requests still complete during the drain - [ ] `/readyz` never touches the database
bobby added the ready-for-agent label 2026-11-27 16:43:20 -05:00
bobby added a new dependency 2026-11-27 16:43:20 -05:00
bobby added a new dependency 2026-11-27 16:44:07 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Reference: bobby/hapi#77