Readiness probe
GET/readyz
Distinct from liveness (GET /healthz). Ready means: the service is not draining AND Postgres answers a ping AND a Kafka broker answers a metadata request (reachability only; topics are never required). The dependency verdict is cached for a few seconds. Readiness flips to not-ready as the FIRST step of a graceful shutdown drain (503 with a status body), so a Kubernetes readinessProbe stops routing new traffic while in-flight requests finish. Liveness never flips.
Responses
- 200
- 503
The service is ready to receive traffic
The service is draining (shutdown in progress), or Postgres or Kafka is not reachable, and must not receive new traffic. While draining the body is {"status":"not_ready"} (application/json); when a dependency check fails it is an RFC 7807 problem of type dependency-unavailable whose detail names the failing dependencies (application/problem+json).