https://github.com/andrewstuart/kube-configmap-updater
Annotate your pods with a label and have them automatically redeployed anytime a dependent configmap is updated.
https://github.com/andrewstuart/kube-configmap-updater
Last synced: about 1 year ago
JSON representation
Annotate your pods with a label and have them automatically redeployed anytime a dependent configmap is updated.
- Host: GitHub
- URL: https://github.com/andrewstuart/kube-configmap-updater
- Owner: andrewstuart
- License: apache-2.0
- Created: 2016-10-07T22:11:32.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-11-10T03:33:43.000Z (over 9 years ago)
- Last Synced: 2025-02-03T06:41:58.887Z (over 1 year ago)
- Language: Go
- Size: 15.6 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Refresher
## Auto-restart your k8s pods when dependent configuration maps are updated
To use:
- Deploy configmap-updater in your kubernetes cluster somewhere
- Label your pods with the `astuart.co/configMapBehavior` label, with the following acceptable values:
- `Delete`: Delete this pod when any configmap volumes are updated
Upon updating a configmap used by the labeled pods, all instances will be
deleted, allowing your deployment or replicationcontroller to scale them back
up.
## TODO
- Use a rollout
- Allow label value to control behavior