安装
首先安装 Helm Charts
helm repo add traefik https://helm.traefik.io/traefik helm repo update
然后基于 Chart 安装 traefik 到集群
helm install traefik traefik/traefik \ --namespace ingress-traefik --create-namespace
Dashboard
Traefik 自带 Dashboard,可以通过如下命令启用端口转发
kubectl -n ingress-traefik port-forward \ $(kubectl get pods --selector "app.kubernetes.io/name=traefik" --output=name -n ingress-traefik) \ 9000:9000
然后访问 https://127.0.0.1:9000/dashboard/
配置 Auto HTTPS
https://www.digitalocean.com/community/tutorials/how-to-secure-your-site-in-kubernetes-with-cert-manager-traefik-and-let-s-encrypt