As part of developing our API server, we'd like to add health and ready endpoints to the API server deployment.
Acceptance criteria:
- As soon as the API server started, it should respond with HTTP status code 200 on the health endpoint.
- As as soon as API server connect to the ES/Loki it should respond to the ready endpoint with HTTP status code 200
- In case of constant errors from the ES/Loki it should start to respond with HTTP status code 500 to the ready endpoint, which will cause K8S to remove it from the service.
- As soon as ES connection is available again, it should again respond with HTTP status code 200 *to the *ready endpoint