|
@@ -63,35 +63,9 @@ persistence:
|
|
|
mountPath: {{ $storage.mountPath }}
|
|
|
{{- end }}
|
|
|
|
|
|
- {{/* Database */}}
|
|
|
- postgresdata:
|
|
|
- enabled: true
|
|
|
- type: {{ .Values.freshrssStorage.pgData.type }}
|
|
|
- datasetName: {{ .Values.freshrssStorage.pgData.datasetName | default "" }}
|
|
|
- hostPath: {{ .Values.freshrssStorage.pgData.hostPath | default "" }}
|
|
|
- targetSelector:
|
|
|
- # Postgres pod
|
|
|
- postgres:
|
|
|
- # Postgres container
|
|
|
- postgres:
|
|
|
- mountPath: /var/lib/postgresql/data
|
|
|
- # Postgres - Permissions container
|
|
|
- # Different than the 01-permissions
|
|
|
- permissions:
|
|
|
- mountPath: /mnt/directories/postgres_data
|
|
|
- postgresbackup:
|
|
|
- enabled: true
|
|
|
- type: {{ .Values.freshrssStorage.pgBackup.type }}
|
|
|
- datasetName: {{ .Values.freshrssStorage.pgBackup.datasetName | default "" }}
|
|
|
- hostPath: {{ .Values.freshrssStorage.pgBackup.hostPath | default "" }}
|
|
|
- targetSelector:
|
|
|
- # Postgres backup pod
|
|
|
- postgresbackup:
|
|
|
- # Postgres backup container
|
|
|
- postgresbackup:
|
|
|
- mountPath: /postgres_backup
|
|
|
- # Postgres - Permissions container
|
|
|
- # Different than the 01-permissions
|
|
|
- permissions:
|
|
|
- mountPath: /mnt/directories/postgres_backup
|
|
|
+
|
|
|
+ {{- include "ix.v1.common.app.postgresPersistence"
|
|
|
+ (dict "pgData" .Values.freshrssStorage.pgData
|
|
|
+ "pgBackup" .Values.freshrssStorage.pgBackup
|
|
|
+ ) | nindent 2 }}
|
|
|
{{- end -}}
|