Skip to content

fabric8io/configmapcontroller

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3fc50a7 · Sep 12, 2019

History

66 Commits
Oct 23, 2016
Sep 12, 2019
Oct 21, 2016
Oct 21, 2016
Sep 12, 2019
Oct 21, 2016
Dec 7, 2017
Oct 21, 2016
Dec 15, 2016
Jan 20, 2017
Dec 15, 2016
Jun 11, 2017
Oct 21, 2016
Dec 15, 2016
Oct 22, 2016
Sep 12, 2019
Oct 23, 2016
Oct 21, 2016

Repository files navigation

configmapcontroller

This controller watches for changes to ConfigMap objects and performs rolling upgrades on their associated deployments for apps which are not capable of watching the ConfigMap and updating dynamically.

This is particularly useful if the ConfigMap is used to define environment variables - or your app cannot easily and reliably watch the ConfigMap and update itself on the fly.

How to use configmapcontroller

For a Deployment called foo have a ConfigMap called foo. Then add this annotation to your Deployment

metadata:
  annotations:
    configmap.fabric8.io/update-on-change: "foo"

Then, providing configmapcontroller is running, whenever you edit the ConfigMap called foo the configmapcontroller will update the Deployment by adding the environment variable:

FABRICB_FOO_REVISION=${configMapRevision}

This then triggers a rolling upgrade of your deployment's pods to use the new configuration.