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
Not ready, in one of two shapes. While the service is draining (shutdown in progress) the body is {"status":"not_ready"} with Content-Type: application/json. When Postgres or Kafka is not reachable the body is an RFC 7807 problem (application/problem+json, type dependency-unavailable, the detail names the failing dependencies).