Monitor files pattern by sha sum and execute action if anything changed.
- Sidecar pattern as second container at pod that monitor file changes on shared volumes [1] and send reload action/signal to (main/first) service container.
docker image size ~1MB with minimal set of tools, based on busybox:1
ENV Name | Required | Example |
---|---|---|
FILES_PATTERN | YES | "/etc/*.conf" OR "./path/to/settings/*.conf" |
ACTION | YES | "wget -q -c -S http://localhost/reload" OR "/path/to/executable --reload" |
CHECK_INTERVAL | NO | 5 (Default value is 1s) |
[1] Communicate Between Containers in the Same Pod Using a Shared Volume