Traefik
Container running traefik proxy :
Usage with docker
- Build mborne/traefik-dev image :
docker compose build --pull
- Start traefik :
docker compose up -d
- See http://traefik.dev.localhost for web-ui
- Run whoami to test traefik
See also :
- Using mkcert to generate traefik certificates
- mborne/traefik-dev to customize traefik config.
Usage with Kubernetes
- Read k8s-install.sh and run :
# To get dashboard on http://traefik.dev.localhost
bash k8s-install.sh
# To get dashboard on http://traefik.example.net
DEVBOX_HOSTNAME=example.net bash k8s-install.sh
- Wait for pods to be ready :
kubectl -n traefik-system get pods -w
- Open dashboard on http://traefik.dev.localhost
Usage with Kind
Use kind/quickstart.sh to install traefik or :
- Create kind cluster with ingress-ready config
- Deploy with helm using helm/kind/values.yml with
TRAEFIK_MODE=kind
:
TRAEFIK_MODE=kind bash k8s-install.sh
- Open dashboard on https://traefik.dev.localhost/dashboard/#/
Resources
Docker :
- knplabs.com - How to handle https with docker-compose and mkcert for local development
- traefik.io - blog - Traefik Proxy 2.x and TLS 101
Kubernetes :
- Traefik & Kubernetes
- blog.tomarrell.com - Kustomize: Traefik v2.2 as a Kubernetes Ingress Controller
- www.grottedubarbu.fr - Traefik 2.2 + K3S
- www.grottedubarbu.fr - Kubernetes : Kustomize & Traefik
Other :