I have a docker container running with kong gateway.
I want to provide a rest interface/endpoint to check the health of the server and container. E.g. GET http://container.com/health/ which delivers
200 OK
'{"status":"UP"}';
What is the simplest and quickest solution or best practice?
You can create a /health route and enable the request-termination plugin like so:
That being said, the preferred way of determining the health status of a Kong node is to actually use the built-in health routes (/status endpoint):
https://docs.konghq.com/gateway/latest/admin-api/#health-routes