Setup authelia ingress with helm values

This commit is contained in:
2024-12-25 19:44:32 +01:00
parent 34ee3cd3c7
commit 9a5d96c379
5 changed files with 19 additions and 35 deletions

View File

@@ -1,15 +0,0 @@
# /apps/prod/authelia/forward-auth-middleware.yaml
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: authelia
namespace: auth
spec:
forwardAuth:
address: 'http://authelia.auth.svc.cluster.local/api/verify?rd=https://auth.example.com'
trustForwardHeader: true
authResponseHeaders:
- "Remote-User"
- "Remote-Groups"
- "Remote-Email"
- "Remote-Name"

View File

@@ -1,15 +0,0 @@
# /apps/prod/authelia/ingress.yaml
apiVersion: traefik.io/v1alpha1
kind: IngressRoute
metadata:
name: authelia-ingress
namespace: auth
spec:
entryPoints:
- websecure
routes:
- match: Host(`auth.example.com`)
kind: Rule
services:
- name: authelia
port: 80

View File

@@ -6,8 +6,6 @@ namespace: auth
resources:
- ../../base/authelia
- release.yaml
- ingress.yaml
- forward-auth-middleware.yaml
- users-database.enc.yaml
configMapGenerator:

View File

@@ -40,3 +40,20 @@ pod:
- name: authelia-users-vol
secret:
secretName: authelia-users-secret
ingress:
enabled: true
ingressClassName: "traefik"
traefikCRD:
enabled: true
middlewares:
auth:
nameOverride: "authelia"
authResponseHeaders:
- "Remote-User"
- "Remote-Groups"
- "Remote-Email"
- "Remote-Name"
matchOverride: Host(`auth.example.com`)
entryPoints:
- "websecure"

View File

@@ -7,9 +7,8 @@ ingressRoute:
enabled: true
matchRule: Host(`traefik.example.com`)
entryPoints: ["websecure"]
# middlewares:
# - name: "authelia@kubernetescrd"
# - namespace: "auth"
middlewares:
- name: "auth-authelia@kubernetescrd"
providers:
kubernetesCRD:
allowCrossNamespace: true