bowei / hc-from-file

A simple sidecar that serves a healthcheck status from a file. This is useful if your Pod has a more complex healthcheck status that needs to be customized.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

README
======

Example of serving a healthcheck status from a file.

main.go serves the contents of `-resultFile` as the HTTP
status/response. This allows for a separate script
(`healthcheck-example.sh`) to healthcheck containers using custom code
and write the results to `-resultFile`.

About

A simple sidecar that serves a healthcheck status from a file. This is useful if your Pod has a more complex healthcheck status that needs to be customized.

License:Apache License 2.0


Languages

Language:Go 66.1%Language:Shell 33.9%