Dashboard with Traefik header rewrite not working #5248
-
Bug ReportWhat is the issue?Hitting this error when accessing dashboard, with Traefik following Exposing the Dashboard docs
How can it be reproduced?Traefik IngressRoute apiVersion: traefik.containo.us/v1alpha1
kind: IngressRoute
metadata:
name: ingress-route
spec:
entryPoints: ["websecure"]
routes:
- kind: Rule
match: Host(`linkerd.example.com`)
middlewares:
- name: 15d-header-mw
namespace: linkerd
services:
name: linkerd-web
namespace: linkerd
port: 8084
---
apiVersion: traefik.containo.us/v1alpha1
kind: Middleware
metadata:
name: 15d-header-mw
namespace: linkerd
spec:
headers:
customRequestHeaders:
l5d-dst-override: linkerd-web.linkerd.svc.cluster.local:8084 Logs, error output, etcShown on above
|
Beta Was this translation helpful? Give feedback.
Answered by
grampelberg
Nov 18, 2020
Replies: 1 comment
-
Setting |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
grampelberg
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Setting
l5d-dst-override
just fixes discovery, it doesn't solve the host header problem. You'll either need to rewrite the host header in traefik or follow the instructions in dns-rebinding and enforce your specific hosts.