diff --git a/infrastructure/05-authentik/base/values.yaml b/infrastructure/05-authentik/base/values.yaml index e3a84a9..8fcf963 100644 --- a/infrastructure/05-authentik/base/values.yaml +++ b/infrastructure/05-authentik/base/values.yaml @@ -40,5 +40,13 @@ postgresql: enabled: true auth: password: "---" + primary: + persistence: + enabled: true + storageClass: local-path + + redis: - enabled: true \ No newline at end of file + enabled: true + persistence: + enabled: false \ No newline at end of file diff --git a/infrastructure/05-authentik/kustomization.yaml b/infrastructure/05-authentik/kustomization.yaml index e61c0bb..9acdebd 100644 --- a/infrastructure/05-authentik/kustomization.yaml +++ b/infrastructure/05-authentik/kustomization.yaml @@ -18,3 +18,6 @@ helmCharts: releaseName: "authentik" repo: https://charts.goauthentik.io valuesFile: base/values.yaml + +patches: + - path: patches/change-pvc-storageclass.yaml \ No newline at end of file diff --git a/infrastructure/05-authentik/patches/change-pvc-storageclass.yaml b/infrastructure/05-authentik/patches/change-pvc-storageclass.yaml new file mode 100644 index 0000000..449321f --- /dev/null +++ b/infrastructure/05-authentik/patches/change-pvc-storageclass.yaml @@ -0,0 +1,21 @@ +apiVersion: apps/v1 +kind: StatefulSet +metadata: + name: authentik-redis-master +spec: + volumeClaimTemplates: + - apiVersion: v1 + kind: PersistentVolumeClaim + metadata: + labels: + app.kubernetes.io/component: master + app.kubernetes.io/instance: authentik + app.kubernetes.io/name: redis + name: redis-data + spec: + storageClassName: local-path + accessModes: + - ReadWriteOnce + resources: + requests: + storage: 8Gi \ No newline at end of file