mirror of
https://github.com/lordmathis/dev-cluster.git
synced 2025-12-23 00:54:26 +00:00
Setup authelia ingress with helm values
This commit is contained in:
@@ -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"
|
|
||||||
@@ -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
|
|
||||||
@@ -6,8 +6,6 @@ namespace: auth
|
|||||||
resources:
|
resources:
|
||||||
- ../../base/authelia
|
- ../../base/authelia
|
||||||
- release.yaml
|
- release.yaml
|
||||||
- ingress.yaml
|
|
||||||
- forward-auth-middleware.yaml
|
|
||||||
- users-database.enc.yaml
|
- users-database.enc.yaml
|
||||||
|
|
||||||
configMapGenerator:
|
configMapGenerator:
|
||||||
|
|||||||
@@ -40,3 +40,20 @@ pod:
|
|||||||
- name: authelia-users-vol
|
- name: authelia-users-vol
|
||||||
secret:
|
secret:
|
||||||
secretName: authelia-users-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"
|
||||||
@@ -7,9 +7,8 @@ ingressRoute:
|
|||||||
enabled: true
|
enabled: true
|
||||||
matchRule: Host(`traefik.example.com`)
|
matchRule: Host(`traefik.example.com`)
|
||||||
entryPoints: ["websecure"]
|
entryPoints: ["websecure"]
|
||||||
# middlewares:
|
middlewares:
|
||||||
# - name: "authelia@kubernetescrd"
|
- name: "auth-authelia@kubernetescrd"
|
||||||
# - namespace: "auth"
|
|
||||||
providers:
|
providers:
|
||||||
kubernetesCRD:
|
kubernetesCRD:
|
||||||
allowCrossNamespace: true
|
allowCrossNamespace: true
|
||||||
|
|||||||
Reference in New Issue
Block a user