mirror of
https://github.com/truenas/charts.git
synced 2026-04-28 12:32:55 +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
83 lines
2.6 KiB
Smarty
83 lines
2.6 KiB
Smarty
{{- define "piwigo.persistence" -}}
|
|
persistence:
|
|
config:
|
|
enabled: true
|
|
type: {{ .Values.piwiStorage.config.type }}
|
|
datasetName: {{ .Values.piwiStorage.config.datasetName | default "" }}
|
|
hostPath: {{ .Values.piwiStorage.config.hostPath | default "" }}
|
|
targetSelector:
|
|
piwigo:
|
|
piwigo:
|
|
mountPath: /config
|
|
gallery:
|
|
enabled: true
|
|
type: {{ .Values.piwiStorage.gallery.type }}
|
|
datasetName: {{ .Values.piwiStorage.gallery.datasetName | default "" }}
|
|
hostPath: {{ .Values.piwiStorage.gallery.hostPath | default "" }}
|
|
targetSelector:
|
|
piwigo:
|
|
piwigo:
|
|
mountPath: /gallery
|
|
tmp:
|
|
enabled: true
|
|
type: emptyDir
|
|
targetSelector:
|
|
piwigo:
|
|
piwigo:
|
|
mountPath: /tmp
|
|
{{- range $idx, $storage := .Values.piwiStorage.additionalStorages }}
|
|
{{ printf "piwi-%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:
|
|
piwigo:
|
|
piwigo:
|
|
mountPath: {{ $storage.mountPath }}
|
|
{{- end }}
|
|
|
|
mariadbdata:
|
|
enabled: true
|
|
type: {{ .Values.piwiStorage.mariadbData.type }}
|
|
datasetName: {{ .Values.piwiStorage.mariadbData.datasetName | default "" }}
|
|
hostPath: {{ .Values.piwiStorage.mariadbData.hostPath | default "" }}
|
|
targetSelector:
|
|
# MariaDB pod
|
|
mariadb:
|
|
# MariaDB container
|
|
mariadb:
|
|
mountPath: /var/lib/mysql
|
|
# MariaDB - Permissions container
|
|
permissions:
|
|
mountPath: /mnt/directories/mariadb_data
|
|
mariadbbackup:
|
|
enabled: true
|
|
type: {{ .Values.piwiStorage.mariadbBackup.type }}
|
|
datasetName: {{ .Values.piwiStorage.mariadbBackup.datasetName | default "" }}
|
|
hostPath: {{ .Values.piwiStorage.mariadbBackup.hostPath | default "" }}
|
|
targetSelector:
|
|
# MariaDB backup pod
|
|
mariadbbackup:
|
|
# MariaDB backup container
|
|
mariadbbackup:
|
|
mountPath: /mariadb_backup
|
|
# MariaDB - Permissions container
|
|
permissions:
|
|
mountPath: /mnt/directories/mariadb_backup
|
|
{{- end -}}
|