Files
chart/library/ix-dev/community/whoogle/templates/_persistence.tpl
Stavros Kois df4b8ae4ac Adds smb-pv-pvc option to apps (#1670)
* 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
2023-10-26 18:08:46 +03:00

65 lines
1.7 KiB
Smarty

{{- define "whoogle.persistence" -}}
persistence:
config:
enabled: true
# Upstream also has this dir
# in an tmpfs directory
type: emptyDir
targetSelector:
whoogle:
whoogle:
mountPath: /config
tmp:
enabled: true
type: emptyDir
targetSelector:
whoogle:
whoogle:
mountPath: /tmp
runtor:
enabled: true
type: emptyDir
targetSelector:
whoogle:
whoogle:
mountPath: /run/tor
varlibtor:
enabled: true
type: emptyDir
targetSelector:
whoogle:
whoogle:
mountPath: /var/lib/tor
# emptyDir is by default 0:fsGroup
# But for this directory we need to set it to 927:927
01-permissions:
mountPath: /mnt/directories/varlibtor
{{- range $idx, $storage := .Values.whoogleStorage.additionalStorages }}
{{ printf "whoogle-%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:
whoogle:
whoogle:
mountPath: {{ $storage.mountPath }}
01-permissions:
mountPath: /mnt/directories{{ $storage.mountPath }}
{{- end }}
{{- end -}}