Replies: 4 comments 2 replies
-
What's the use case for running a health check binary inside the container? Normally this would be performed by the orchestrator? It could perhaps make sense to add a healthz style endpoint which can be polled, but the binary should exit if there's any major issue, which the orchestrator should pickup and therefore reschedule. Moving to discussion |
Beta Was this translation helpful? Give feedback.
-
A /healthz style endpoint would certainly be useful for situations where the binary doesn't exit, however rare they might be |
Beta Was this translation helpful? Give feedback.
-
@thomseddon are there any news for adding support for health checks when running this on a plain docker host? healthcheck:
test: ['CMD', 'traefik', 'healthcheck', '--ping']
interval: 10s
timeout: 10s
retries: 5 They provide a separate command on the binary just for this case that simply calls |
Beta Was this translation helpful? Give feedback.
-
@thomseddon is there a timely solution to this issue? There are already some suggestions for a solution. What is the problem with the integration now? |
Beta Was this translation helpful? Give feedback.
-
Would it be possible to get a healthcheck added to this? Since the container is built from scratch and its only a single executable, I can't run
wget
orcurl
to ping the listener. Might be easiest to make another simple healthcheck binary that just makes an http request and exits 1 on failure?Beta Was this translation helpful? Give feedback.
All reactions