William-Yeh / configmap-auto-reload

This repo demonstrates 3 ways for apps to auto reload from Kubernetes ConfigMap.

Home Page:https://william-yeh.net/post/2019/06/autoreload-from-configmap/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Examples for Auto Reloading from ConfigMap

This repo demonstrates 3 ways for apps to auto reload from Kubernetes ConfigMap.

Built-in auto-reloading

Traefik has a built-in auto-reloading feature. Will this work with Kubernetes ConfigMap?

See the traefik-example.

External signals

Nginx by itself doesn't auto-reload configurations; it reloads config when it is told to do so -- by receiving a "reload" signal (HUP). See "Controlling nginx" document for more details.

Will this work with Kubernetes ConfigMap?

See the inotifywait-example.

Pod rollout

With the help of a generic solution Reloader, pods can be restarted whenever related ConfigMap has changed.

See the reloader-example.

LICENSE

Apache License 2.0. See the LICENSE file.

About

This repo demonstrates 3 ways for apps to auto reload from Kubernetes ConfigMap.

https://william-yeh.net/post/2019/06/autoreload-from-configmap/

License:Apache License 2.0


Languages

Language:Shell 66.2%Language:Dockerfile 33.8%