Skip to content
Branch: master
Find file History
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
..
Failed to load latest commit information.
README.md
nginx-config.yml
nginx-service.yml
skaffold.yaml

README.md

Auto-Reload: Reloader example

Purpose: use Reloader to watch for ConfigMap changes and restart Nginx pods automatically.

To simply the demo steps, use Skaffold to bootstrap the whole stuff.

.
├── nginx-config.yml
├── nginx-service.yml
└── skaffold.yaml

0 directories, 3 files

Usage

  1. Install Reloader:

    % kubectl apply -f https://raw.githubusercontent.com/stakater/Reloader/master/deployments/kubernetes/reloader.yaml
    
  2. Create a reloader-example namespace for this test:

    % kubectl create ns reloader-example
    
  3. Use Skaffold to load configmap content (nginx-config) and bring up nginx app (service/nginx) in the reloader-example namespace:

    % skaffold dev  -n reloader-example
    
  4. Edit the ConfigMap content, eithor by:

    % kubectl edit configmap nginx-config  -n reloader-example
    

    or by:

    % vi nginx-config.yml
    

Demo

You can see the demo at:

asciicast

You can’t perform that action at this time.