From 7294d8fca5fd8deb6cd4bc86cba359404ef45689 Mon Sep 17 00:00:00 2001 From: Jens Langhammer Date: Sun, 29 Aug 2021 20:46:17 +0200 Subject: [PATCH] website/docs: add note for cross-namespace reference in traefik Signed-off-by: Jens Langhammer --- website/docs/providers/proxy/forward_auth.mdx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/website/docs/providers/proxy/forward_auth.mdx b/website/docs/providers/proxy/forward_auth.mdx index b8634ca5a..1abca7063 100644 --- a/website/docs/providers/proxy/forward_auth.mdx +++ b/website/docs/providers/proxy/forward_auth.mdx @@ -261,6 +261,12 @@ spec: Add the following settings to your IngressRoute +:::warning +By default traefik does not allow cross-namespace references for middlewares: + +See [here](https://doc.traefik.io/traefik/v2.4/providers/kubernetes-crd/#allowcrossnamespace) to enable it. +::: + ```yaml spec: routes: @@ -268,8 +274,10 @@ spec: match: "Host(`*external host that you configured in authentik*`)" middlewares: - name: authentik + namespace: authentik priority: 10 services: # Unchanged + # This part is only required for single-app setups - kind: Rule match: "Host(`*external host that you configured in authentik*`) && PathPrefix(`/akprox/`)" priority: 15