Readiness probe
GET/readyz
Readiness, separate from liveness (/healthz, above): reports ready until graceful shutdown begins, at which point it flips to not_ready as the FIRST step of the shutdown sequence (ADR 0004) -- before the HTTP server stops accepting connections -- so a Kubernetes readinessProbe pointed here gets a window to stop routing new traffic before the drain that follows. /healthz stays a pure liveness signal and is never flipped by this.
Readiness also reflects the two runtime dependencies (ADR 0025): Postgres (a ping) and Kafka (broker metadata reachable). Topics are never checked. While either is unreachable the answer is a 503 dependency-unavailable problem naming the failing dependency, and /healthz stays 200.
Responses
- 200
- 503
Ready to receive traffic.
Not ready. Either graceful shutdown is in progress (application/json, {"status":"not_ready"}), or Postgres or Kafka is unreachable (application/problem+json, type dependency-unavailable, detail naming the failing dependency, e.g. not ready: postgres). A readinessProbe observing this should stop routing new requests to this pod; already-established connections are unaffected.