website/docs: Update Traefik middleware example to reflect latest version of Traefik (#12267)

Co-authored-by: Marc 'risson' Schmitt <marc.schmitt@risson.space>
This commit is contained in:
L.J. Hanson
2024-12-05 13:09:13 -05:00
committed by GitHub
parent 672ba72c8a
commit b75672ff0e

View File

@ -1,7 +1,7 @@
Create a middleware: Create a middleware:
```yaml ```yaml
apiVersion: traefik.containo.us/v1alpha1 apiVersion: traefik.io/v1alpha1
kind: Middleware kind: Middleware
metadata: metadata:
name: authentik name: authentik
@ -23,6 +23,9 @@ spec:
- X-authentik-meta-app - X-authentik-meta-app
- X-authentik-meta-version - X-authentik-meta-version
``` ```
:::info
Traefik changed the apiVersion of the middleware CRD in version 3.0, for older versions please subsititue "apiVersion: traefik.containo.us/v1alpha1"
:::
Add the following settings to your IngressRoute Add the following settings to your IngressRoute