Helm chart with a simplistic app to demo how ConfigMaps are used/updated
in Kubernetes. It reads and prints data from config (config.json
) as
well as watches the modifications of this config via fsnotify
.
Intended to be used as a playground for a corresponding article:
- «ConfigMaps in Kubernetes: how they work and what you should remember».
- Russian version: «ConfigMaps в Kubernetes: нюансы, о которых стоит знать».
git clone https://github.com/flant/examples.git flant-examples
helm install \
./flant-examples/2020/04-configmaps/charts/configmaps-demo/ \
--name configmaps-demo \
--namespace configmaps-demo \
--set 'name.production=Tod' \
--set 'global.env=production'
helm upgrade \
configmaps-demo \
./flant-examples/2020/04-configmaps/charts/configmaps-demo/ \
--set 'name.production=Mary' \
--set 'global.env=production'