1、添加traefik helm仓库
$ helm repo add traefik https://helm.traefik.io/traefik
$ helm repo update
2、下载到本地
$ helm search repo traefik
NAME CHART VERSION APP VERSION DESCRIPTION
traefik/traefik 10.20.1 2.7.0 A Traefik based Kubernetes ingress controller
$ helm pull traefik/traefik
3、部署Traefik
3.1 修改values
#type: LoadBalancer
type: ClusterIP
ports:
traefik:
port: 8080
hostPort: 8080
exposedPort: 8080
expose: true
protocol: TCP
添加
additionalArguments:
- "--serversTransport.insecureSkipVerify=true"
- "--api.insecure=true"
- "--api.dashboard=true"
或者简单点
完整配置如下
==================================
service:
type: ClusterIP