Files
homelab-v/k8s/infra/auth/authelia/cnpg-db.yaml
T
Vegard Hagen ce5fc25504 feat(authelia): use a cnpg managed db
use a database for presistent storage of users and sessions
2025-01-06 20:14:45 +01:00

40 lines
909 B
YAML

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