optics-monorepo
optics-monorepo copied to clipboard
Implement Agent Health Endpoints
- Implement a
/livez
endpoint that returns200 OK
once the agent has booted, regardless of sync state assuming everything is healthy - Implement a
/readyz
endpoint that returns200 OK
when the agent has reached a state where it is engaged in normal agent operations.
Details on how this is implemented by the Kubernetes API: https://kubernetes.io/docs/reference/using-api/health-checks/ Details on how this will be used by the helm chart: https://kubernetes.io/docs/tasks/configure-pod-container/configure-liveness-readiness-startup-probes/