mirror of
https://github.com/truenas/charts.git
synced 2026-06-28 00:06:45 +08:00
* autobrr * bazarr * briefkasten * castopod * cloudflared * deluge * distribution * drawio * filebrowser * flame * frigaet * fscrawler * grafana * bump missed app * homarr * homepage * homer * jellyfin * jenkins * kapowarr * kavita * komga * lidarr * linkding * listmonk * logseq * metube * minecraft * n8n * navidrome * node-red * omada * paperless * passbolt * pgadmin * pigallery * piwigo * planka * plex auto lang * prowlarr * qbit * radarr * readarr * recyclarr * rust-desk * sabnzbd * searxng * sftpgo * sonarr * tautulli * tdarr * tmm * transmission * 2fauth * unifi * unifi backup * whoogle * wordpress * syncthing-enterprise * immutable type
79 lines
2.5 KiB
Smarty
79 lines
2.5 KiB
Smarty
{{- define "listmonk.persistence" -}}
|
|
persistence:
|
|
uploads:
|
|
enabled: true
|
|
type: {{ .Values.listmonkStorage.uploads.type }}
|
|
datasetName: {{ .Values.listmonkStorage.uploads.datasetName | default "" }}
|
|
hostPath: {{ .Values.listmonkStorage.uploads.hostPath | default "" }}
|
|
targetSelector:
|
|
listmonk:
|
|
listmonk:
|
|
mountPath: /listmonk/uploads
|
|
01-permissions:
|
|
mountPath: /mnt/directories/uploads
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
listmonk:
|
|
listmonk:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.listmonkStorage.additionalStorages }}
|
|
{{ printf "listmonk-%v" (int $idx) }}:
|
|
{{- $size := "" -}}
|
|
{{- if $storage.size -}}
|
|
{{- $size = (printf "%vGi" $storage.size) -}}
|
|
{{- end }}
|
|
enabled: true
|
|
type: {{ $storage.type }}
|
|
datasetName: {{ $storage.datasetName | default "" }}
|
|
hostPath: {{ $storage.hostPath | default "" }}
|
|
server: {{ $storage.server | default "" }}
|
|
share: {{ $storage.share | default "" }}
|
|
domain: {{ $storage.domain | default "" }}
|
|
username: {{ $storage.username | default "" }}
|
|
password: {{ $storage.password | default "" }}
|
|
size: {{ $size }}
|
|
{{- if eq $storage.type "smb-pv-pvc" }}
|
|
mountOptions:
|
|
- key: noperm
|
|
{{- end }}
|
|
targetSelector:
|
|
listmonk:
|
|
listmonk:
|
|
mountPath: {{ $storage.mountPath }}
|
|
{{- end -}}
|
|
|
|
{{/* Database */}}
|
|
postgresdata:
|
|
enabled: true
|
|
type: {{ .Values.listmonkStorage.pgData.type }}
|
|
datasetName: {{ .Values.listmonkStorage.pgData.datasetName | default "" }}
|
|
hostPath: {{ .Values.listmonkStorage.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.listmonkStorage.pgBackup.type }}
|
|
datasetName: {{ .Values.listmonkStorage.pgBackup.datasetName | default "" }}
|
|
hostPath: {{ .Values.listmonkStorage.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
|
|
{{- end -}}
|