Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for disabling container healthchecks #342

Open
optiz0r opened this issue May 15, 2024 · 0 comments
Open

Support for disabling container healthchecks #342

optiz0r opened this issue May 15, 2024 · 0 comments

Comments

@optiz0r
Copy link
Contributor

optiz0r commented May 15, 2024

While porting jobs from docker to podman, I'm running into an issue relating to health checks. Specifically that a container has some checks defined, which are failing (due to a configuration issue with the container, but that's not particularly relevant). The failed health check is causing a systemd failed service unit for ${container_id}.service, which is then tripping our system-level monitoring.

I see the docker task driver has the ability to disable healthchecks (added in hashicorp/nomad#14089), but checking the source code of the podman task driver, there's no equivalent functionality.

Could this driver be extended to suppress unwanted container-level health checks (since nomad jobs already have their own health checks which run independently)?

# systemctl --failed
  UNIT                                                                     LOAD   ACTIVE SUB    DESCRIPTION                                                                                     
● 9c1da878c689af1d8dd7c2ee131b092b1fe44a33a64775581933c9f80be51c47.service loaded failed failed /usr/bin/podman healthcheck run 9c1da878c689af1d8dd7c2ee131b092b1fe44a33a64775581933c9f80be51c47
# podman inspect -f '{{ json .Config.Healthcheck }}' 9c1da878c689af1d8dd7c2ee131b092b1fe44a33a64775581933c9f80be51c47
{"Test":["CMD-SHELL","step ca health 2>/dev/null | grep \"^ok\" >/dev/null"],"Interval":30000000000,"Timeout":30000000000}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant