Skip to content
This repository has been archived by the owner on Nov 12, 2022. It is now read-only.

Latest commit

 

History

History

kubernetes

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

Kubernetes

Run the demo

you need docker-compose, kubectl and helm (v3) installed

  1. git clone git@github.com:acouvreur/traefik-ondemand-plugin.git
  2. cd traefik-ondemand-plugin/examples/kubernetes
  3. docker-compose up
  4. Wait 1 minute
  5. export KUBECONFIG=./kubeconfig.yaml
  6. helm repo add traefik https://helm.traefik.io/traefik
  7. helm repo update
  8. Edit values.yaml and add your traefik pilot.token
  9. helm install traefik traefik/traefik -f values.yaml --namespace kube-system
  10. kubectl apply -f deploy-whoami.yml
  11. kubectl apply -f manifests.yml
  12. kubectl scale deploy whoami --replicas=0
  13. Browse to http://localhost/
  14. 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
  1. 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`
  1. Browse to http://localhost/