git clone [email protected]:acouvreur/traefik-ondemand-plugin.git
cd traefik-ondemand-plugin/examples/kubernetes
docker-compose up
- Wait 1 minute
export KUBECONFIG=./kubeconfig.yaml
helm repo add traefik https://helm.traefik.io/traefik
helm repo update
- Edit values.yaml and add your traefik pilot.token
helm install traefik traefik/traefik -f values.yaml --namespace kube-system
kubectl apply -f deploy-whoami.yml
kubectl apply -f manifests.yml
- Browse to http://localhost/
kubectl get deployments -o wide
NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR
whoami 1/1 1 1 16m whoami containous/whoami app=whoami
- After 1 minute:
kubectl get deployments -o wide
NAME READY UP-TO-DATE AVAILABLE AGE CONTAINERS IMAGES SELECTOR
whoami 0/0 0 0 17m whoami containous/whoami app=whoami`
- Browse to http://localhost/