Open bednar opened 3 years ago
The "expected behavior" is NOT the expected behaviour in cloud. A change to expose that information in cloud is not valid, as I far as I understand it.
(1) Verify that we never expose the k8s /health or /ready endpoints on a public cloud API endpoint. These should only be bind’d to internal interfaces in cloud and should not be part of the public API. (2) Verify what the /health and /ready endpoints return in OSS. (3) Verify if OSS has /api/v2/health and /api/v2/ready routes in addition to /health and /ready (4) Verify which endpoint is used by the CLI ping command. Then let’s get together and see what sorts out from this. I think the cleanest implementation is to support a top level /ping endpoint for OSS and for Cloud that returns a 200 OK when up and to port all the liveness checks to that. OSS will need to possibly report health/status information that’s not appropriate within cloud. We can figure out how to have OSS-only endpoints for those things.
Hi @rbetts,
I've prepare change for exposing /ping
endpoint.
Could you check it out:
?
Regards
According to swagger definition the
/health
and/ready
endpoint should be exposed at root path, but it works only for OSS instances.https://github.com/influxdata/influxdb/blob/26cf6af07aeb2956ddf5792a31269a94c0f0528e/http/swagger.yml#L2002
Steps to reproduce: List the minimal actions needed to reproduce the behaviour.
Expected behavior: Return
JSON
with health information.Actual behavior: Return
HTML
page:Environment info:
Swagger definition:
Related to https://github.com/influxdata/influxdb-client-java/issues/143