diff --git a/authentik/templates/authentik-pv.yaml b/authentik/templates/authentik-pv.yaml new file mode 100644 index 0000000..53aef0a --- /dev/null +++ b/authentik/templates/authentik-pv.yaml @@ -0,0 +1,24 @@ +apiVersion: v1 +kind: PersistentVolume +metadata: + annotations: + pv.kubernetes.io/provisioned-by: durp.info/nfs + finalizers: + - kubernetes.io/pv-protection + name: authentik-pv +spec: + accessModes: + - ReadWriteMany + capacity: + storage: 10Gi + claimRef: + apiVersion: v1 + kind: PersistentVolumeClaim + name: authentik-pvc + namespace: authentik + nfs: + path: /mnt/user/k3s/authentik + server: 192.168.20.253 + persistentVolumeReclaimPolicy: Retain + storageClassName: nfs-storage + volumeMode: Filesystem diff --git a/authentik/templates/authentik-pvc.yaml b/authentik/templates/authentik-pvc.yaml new file mode 100644 index 0000000..ea31f9d --- /dev/null +++ b/authentik/templates/authentik-pvc.yaml @@ -0,0 +1,18 @@ +apiVersion: v1 +kind: PersistentVolumeClaim +metadata: + labels: + app.kubernetes.io/component: app + app.kubernetes.io/instance: authentik + app.kubernetes.io/managed-by: Helm + app.kubernetes.io/name: authentik + helm.sh/chart: authentik-2.14.4 + name: authentik-pvc + namespace: authentik +spec: + accessModes: + - ReadWriteMany + resources: + requests: + storage: 10Gi + storageClassName: nfs-storage \ No newline at end of file diff --git a/authentik/values.yaml b/authentik/values.yaml index 32a5356..077f7f0 100644 --- a/authentik/values.yaml +++ b/authentik/values.yaml @@ -145,9 +145,7 @@ authentik: existingSecret: authentik-postgresql1 persistence: enabled: true - storageClass: nfs-storage - accessModes: - - ReadWriteMany + existingClaim: authentik-pvc redis: enabled: true architecture: standalone