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
skaffold.yaml
traefik-config.yml
traefik-service.yml
traefik.toml
traefik_linux-amd64

README.md

Auto-Reload: Traefik example

Purpose: to see if Traefik auto-reload feature still works in Kubernetes.

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

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

0 directories, 3 files

Usage

  1. Create a traefik-example namespace for this test:

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

    % skaffold dev  -n traefik-example
    
  3. Watch for traefik logs:

    % kubectl logs -f service/traefik  -n traefik-example
    
  4. Edit the ConfigMap content, eithor by:

    % kubectl edit configmap traefik-config  -n traefik-example
    

    or by:

    % vi traefik-config.yml
    

Demo

You can see the demo at:

asciicast

You can’t perform that action at this time.