feat(authelia): use a cnpg managed db

use a database for presistent storage of users and sessions
This commit is contained in:
Vegard Hagen
2025-01-06 20:14:45 +01:00
parent 2eacd07803
commit ce5fc25504
9 changed files with 56 additions and 63 deletions
+39
View File
@@ -0,0 +1,39 @@
apiVersion: postgresql.cnpg.io/v1
kind: Cluster
metadata:
name: authelia-postgres
namespace: authelia
spec:
instances: 1
affinity:
nodeSelector:
topology.kubernetes.io/zone: euclid
monitoring:
enablePodMonitor: true
postgresql:
parameters:
timezone: Europe/Oslo
bootstrap:
initdb:
database: authelia
owner: authelia
managed:
services:
disabledDefaultServices: [ "ro", "r" ]
# additional:
# - selectorType: rw
# updateStrategy: patch
# serviceTemplate:
# metadata:
# name: authelia-postgres-db
# annotations:
# io.cilium/lb-ipam-ips: 192.168.1.240
# spec:
# type: LoadBalancer
storage:
size: 512M
pvcTemplate:
storageClassName: proxmox-csi
volumeName: pv-authelia-postgres
accessModes:
- ReadWriteOnce