An open API service indexing awesome lists of open source software.

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.

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