# 03-01 Traefik Dashboard(HelmChartConfig + IngressRoute) # 部署:kubectl apply -f traefik-dashboard.yaml(或复制到 K3s server/manifests/) --- apiVersion: helm.cattle.io/v1 kind: HelmChartConfig metadata: name: traefik namespace: kube-system spec: valuesContent: |- ports: web: expose: true websecure: expose: true traefik: expose: true additionalArguments: - "--api.dashboard=true" - "--api.insecure=true" --- apiVersion: traefik.io/v1alpha1 kind: IngressRoute metadata: name: traefik-dashboard namespace: kube-system spec: entryPoints: - web routes: - match: PathPrefix(`/dashboard`) || PathPrefix(`/api`) kind: Rule services: - name: api@internal kind: TraefikService