mirror of
https://github.com/sablierapp/sablier.git
synced 2025-12-24 22:39:25 +01:00
git-subtree-dir: plugins/traefik git-subtree-mainline:1a14070131git-subtree-split:aef1f9e0dd
Kubernetes
Run the demo
you need docker-compose, kubectl and helm (v3) installed
git clone git@github.com:acouvreur/traefik-ondemand-plugin.gitcd traefik-ondemand-plugin/examples/kubernetesdocker-compose up- Wait 1 minute
export KUBECONFIG=./kubeconfig.yamlhelm repo add traefik https://helm.traefik.io/traefikhelm repo update- Edit values.yaml and add your traefik pilot.token
helm install traefik traefik/traefik -f values.yaml --namespace kube-systemkubectl apply -f deploy-whoami.ymlkubectl apply -f manifests.ymlkubectl scale deploy whoami --replicas=0- 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/