website/docs: add note for cross-namespace reference in traefik
Signed-off-by: Jens Langhammer <jens.langhammer@beryju.org>
This commit is contained in:
parent
16ec5680b4
commit
7294d8fca5
|
@ -261,6 +261,12 @@ spec:
|
||||||
|
|
||||||
Add the following settings to your IngressRoute
|
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
|
```yaml
|
||||||
spec:
|
spec:
|
||||||
routes:
|
routes:
|
||||||
|
@ -268,8 +274,10 @@ spec:
|
||||||
match: "Host(`*external host that you configured in authentik*`)"
|
match: "Host(`*external host that you configured in authentik*`)"
|
||||||
middlewares:
|
middlewares:
|
||||||
- name: authentik
|
- name: authentik
|
||||||
|
namespace: authentik
|
||||||
priority: 10
|
priority: 10
|
||||||
services: # Unchanged
|
services: # Unchanged
|
||||||
|
# This part is only required for single-app setups
|
||||||
- kind: Rule
|
- kind: Rule
|
||||||
match: "Host(`*external host that you configured in authentik*`) && PathPrefix(`/akprox/`)"
|
match: "Host(`*external host that you configured in authentik*`) && PathPrefix(`/akprox/`)"
|
||||||
priority: 15
|
priority: 15
|
||||||
|
|
Reference in New Issue