This commit is contained in:
azykov@mail.ru
2026-07-21 20:44:04 +03:00
parent c555ad1eae
commit dadad31e87
9 changed files with 150 additions and 0 deletions
@@ -0,0 +1,68 @@
apiVersion: helm.toolkit.fluxcd.io/v2
kind: HelmRelease
metadata:
name: authelia
namespace: auth
spec:
interval: 10m
chartRef:
kind: OCIRepository
name: authelia
values:
controllers:
auth:
containers:
app:
image:
repository: authelia/authelia
tag: latest
probes:
liveness:
enabled: true
readiness:
enabled: true
service:
app:
controller: auth
ports:
http:
port: 9091
ingress:
app:
className: traefik
annotations:
cert-manager.io/cluster-issuer: letsencrypt-prod
hosts:
- host: auth.aggtaa.com
paths:
- path: /
pathType: Prefix
service:
identifier: app
port: http
tls:
- secretName: auth-tls
hosts:
- auth.aggtaa.com
persistence:
config:
type: secret
name: authelia-secrets
globalMounts:
- path: /config/configuration.yml
subPath: configuration.yml
readOnly: true
- path: /config/users_database.yml
subPath: users_database.yml
readOnly: true
db:
type: persistentVolumeClaim
accessMode: ReadWriteOnce
size: 1Gi
storageClass: longhorn
retain: true
globalMounts:
- path: /db
@@ -0,0 +1,10 @@
apiVersion: source.toolkit.fluxcd.io/v1
kind: OCIRepository
metadata:
name: authelia
namespace: auth
spec:
interval: 1h
url: oci://ghcr.io/bjw-s-labs/helm/app-template
ref:
tag: "5.0.1"
@@ -0,0 +1,8 @@
apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization
resources:
- helmrepository.yaml
- helmrelease.yaml
- middleware.yaml
- secret.enc.yaml
@@ -0,0 +1,14 @@
apiVersion: traefik.io/v1alpha1
kind: Middleware
metadata:
name: authelia
namespace: auth
spec:
forwardAuth:
address: http://authelia.authelia.svc.cluster.local:9091/api/verify?rd=https://auth.aggtaa.com
trustForwardHeader: true
authResponseHeaders:
- Remote-User
- Remote-Groups
- Remote-Name
- Remote-Email
File diff suppressed because one or more lines are too long
+4
View File
@@ -0,0 +1,4 @@
apiVersion: v1
kind: Namespace
metadata:
name: auth
+21
View File
@@ -0,0 +1,21 @@
apiVersion: kustomize.toolkit.fluxcd.io/v1
kind: Kustomization
metadata:
name: auth
namespace: flux-system
spec:
interval: 10m
sourceRef:
kind: GitRepository
name: flux-system
path: ./clusters/base/apps/auth
prune: true
wait: true
dependsOn:
- name: namespaces
- name: infra
retryInterval: 5s
decryption:
provider: sops
secretRef:
name: sops-age
+1
View File
@@ -4,3 +4,4 @@ resources:
- vaultwarden.yaml
- zigbee2mqtt.yaml
- radicale.yaml
- authelia.yaml
@@ -5,3 +5,4 @@ resources:
- ../../base/namespaces/zigbee2mqtt.yaml
- ../../base/namespaces/pim.yaml
- ../../base/namespaces/longhorn-system.yaml
- ../../base/namespaces/auth.yaml