Hello,
I try to add a custom Middleware but it's never detected and not display on dasboard
Have you idea why ?
My Middleware :
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: authelia
namespace: ${namespace}
spec:
forwardAuth:
address: http://authelia.authelia${internal_domain}:9091/api/verify?rd=https://auth.${domain}/
trustForwardHeader: true
authResponseHeaders:
- Remote-User
- Remote-Name
- Remote-Email
- Remote-Groups
I have install Traefik with your chart available here : GitHub - traefik/traefik-helm-chart: Traefik v2 helm chart
With this value.yaml :
image:
tag: '${version["traefik"]}'
deployment:
annotations:
keel.sh/policy: all
keel.sh/trigger: poll
keel.sh/pollSchedule: "@every 10m"
keel.sh/approvals: "1"
ingressClass:
enabled: true
isDefaultClass: true
pilot:
enabled: true
token: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"
dashboard: true
rollingUpdate:
maxUnavailable: 0
providers:
kubernetesCRD:
allowCrossNamespace: true
allowExternalNameServices: true
allowEmptyServices: true
kubernetesIngress:
allowExternalNameServices: true
allowEmptyServices: true
logs:
general:
level: DEBUG
additionalArguments:
- "--serverstransport.insecureskipverify=true"
- "--entrypoints.unifi.address=:8080/tcp"
- "--entrypoints.authelia.address=:9091/tcp"
- "--api.insecure=true"
ports:
traefik:
expose: true
web:
redirectTo: websecure
websecure:
tls:
enabled: true
certResolver: "traefik-cert"
domains:
- main: ${domain}
sans:
- "*.${domain}"
unifi:
port: 8080
expose: true
exposedPort: 8080
protocol: TCP
authelia:
port: 9091
expose: true
exposedPort: 9091
protocol: TCP
service:
annotations:
traefik.frontend.passHostHeader: "true"
labels:
traefik.frontend.passHostHeader: "true"
spec:
# externalTrafficPolicy: Local
loadBalancerIP: ${ingress_local_ip}
persistence:
enabled: true
nodeSelector:
kubernetes.io/hostname: ${nodeSelector}