https://github.com/chuan137/configmap-watch
Watch configmap changes, response with liveness probe
https://github.com/chuan137/configmap-watch
configmap k8s
Last synced: about 1 month ago
JSON representation
Watch configmap changes, response with liveness probe
- Host: GitHub
- URL: https://github.com/chuan137/configmap-watch
- Owner: chuan137
- License: apache-2.0
- Created: 2019-04-30T09:23:12.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-07-24T12:47:03.000Z (almost 7 years ago)
- Last Synced: 2025-08-24T15:47:20.047Z (10 months ago)
- Topics: configmap, k8s
- Language: Makefile
- Homepage:
- Size: 6.84 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Kubernetes ConfigMap Watch
*Inspired by [jimmidyson/configmap-reload](https://github.com/jimmidyson/configmap-reload), but combined with liveness probe*
**configmap-watch** is a simple http server that returns predefined status codes base on the states of the watched Kubernetes ConfigMaps. It can be run in a side car container along with the main container that sends liveness probe to it. The http server returns status code 200 until the watched configmap is updated. Then it returns 500 for 120 seconds, during when liveness probe signifies unhealthy.
~~It is available as a Docker image at https://hub.docker.com/r/chuan137/configmap-watcher~~
### Usage
```
Usage of ./out/configmap-watch:
-debug
print debug info
-volume-dir value
the config map volume directory to watch for updates; may be used multiple times
-wait int
seconds during which reload flag remains true (default 120)
```
### License
This project is [Apache Licensed](LICENSE.txt)