When the agent is run in standalone mode (exposed over HTTP and or PubSub), it should expose standard health endpoints to support Kubernetes and Dapr health checks.
Add the following endpoints:
/healthz: Overall application health.
/livez: Kubernetes liveness probe, indicates whether the process should be restarted.
/readyz: Kubernetes readiness probe, indicates whether the agent can accept traffic.
If all 3 endpoints behave the same way, IMO a single healthz would be sufficient.
Additionally, Dapr always probes /dapr/config for subscriptions. Instead of returning 404, the agent should return an empty list to avoid surfacing errors when no subscriptions are defined.
Reference: https://docs.dapr.io/operations/resiliency/health-checks/app-health/
When the agent is run in standalone mode (exposed over HTTP and or PubSub), it should expose standard health endpoints to support Kubernetes and Dapr health checks.
Add the following endpoints:
/healthz: Overall application health./livez: Kubernetes liveness probe, indicates whether the process should be restarted./readyz: Kubernetes readiness probe, indicates whether the agent can accept traffic.If all 3 endpoints behave the same way, IMO a single healthz would be sufficient.
Additionally, Dapr always probes
/dapr/configfor subscriptions. Instead of returning 404, the agent should return an empty list to avoid surfacing errors when no subscriptions are defined.Reference: https://docs.dapr.io/operations/resiliency/health-checks/app-health/