fun
This commit is contained in:
parent
9ee76633bf
commit
ad436ff171
40
Deployments/traefik-middlewares.yaml
Normal file
40
Deployments/traefik-middlewares.yaml
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
---
|
||||||
|
apiVersion: traefik.containo.us/v1alpha1
|
||||||
|
kind: Middleware
|
||||||
|
metadata:
|
||||||
|
namespace: traefik
|
||||||
|
name: longhorn-authentik-forward
|
||||||
|
spec:
|
||||||
|
forwardAuth:
|
||||||
|
address: http://longhorn.roxedus.com/outpost.goauthentik.io/auth/traefik
|
||||||
|
trustForwardHeader: true
|
||||||
|
authResponseHeaders:
|
||||||
|
- X-authentik-username
|
||||||
|
- X-authentik-groups
|
||||||
|
- X-authentik-email
|
||||||
|
- X-authentik-name
|
||||||
|
- X-authentik-uid
|
||||||
|
- X-authentik-jwt
|
||||||
|
- X-authentik-meta-jwks
|
||||||
|
- X-authentik-meta-outpost
|
||||||
|
- X-authentik-meta-provider
|
||||||
|
- X-authentik-meta-app
|
||||||
|
- X-authentik-meta-version
|
||||||
|
---
|
||||||
|
apiVersion: networking.k8s.io/v1
|
||||||
|
kind: Ingress
|
||||||
|
metadata:
|
||||||
|
name: authentik-foorward-wildcard
|
||||||
|
spec:
|
||||||
|
rules:
|
||||||
|
- host: "*.roxedus.com"
|
||||||
|
|
||||||
|
http:
|
||||||
|
paths:
|
||||||
|
- pathType: Prefix
|
||||||
|
path: "/outpost.goauthentik.io/"
|
||||||
|
backend:
|
||||||
|
service:
|
||||||
|
name: ak-outpost-localcluster
|
||||||
|
port:
|
||||||
|
number: 9000
|
@ -38,6 +38,7 @@ spec:
|
|||||||
annotations:
|
annotations:
|
||||||
cert-manager.io/acme-challenge-type: dns01
|
cert-manager.io/acme-challenge-type: dns01
|
||||||
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
|
cert-manager.io/cluster-issuer: roxedus.com-cloudflare
|
||||||
|
traefik.ingress.kubernetes.io/router.middlewares: authentik-forward@kubernetes
|
||||||
host: longhorn.roxedus.com
|
host: longhorn.roxedus.com
|
||||||
tls: true
|
tls: true
|
||||||
tlsSecret: longhorn-roxedus-com-cert
|
tlsSecret: longhorn-roxedus-com-cert
|
||||||
|
Loading…
Reference in New Issue
Block a user