qclaogui / codelab-monitoring

Little helper to run Grafana LGTMP Stack(Loki Grafana Tempo Mimir Pyroscope) in Docker or Kubernetes.
Apache License 2.0
33 stars 6 forks source link

Support for health checks using CMD rather than CMD-SHELL #200

Closed qclaogui closed 2 months ago

qclaogui commented 2 months ago

Currently only CMD-SHELL health checks are supported which require a shell on the docker container to run. distroless docker images like mockserver don't have a shell so that mechanism doesn't work, see https://github.com/GoogleContainerTools/distroless/issues/183.

To support docker containers without a shell the health check needs to be in the format:

test: ['CMD', '/usr/bin/wget', 'arg1', 'arg2', 'arg3']