_persistence.tpl 815 B

12345678910111213141516171819202122232425262728
  1. {{- define "searxng.persistence" -}}
  2. persistence:
  3. config:
  4. enabled: true
  5. {{- include "ix.v1.common.app.storageOptions" (dict "storage" .Values.searxngStorage.config) | nindent 4 }}
  6. targetSelector:
  7. searxng:
  8. searxng:
  9. mountPath: /etc/searxng
  10. 01-permissions:
  11. mountPath: /mnt/directories/searxng
  12. tmp:
  13. enabled: true
  14. type: emptyDir
  15. targetSelector:
  16. searxng:
  17. searxng:
  18. mountPath: /tmp
  19. {{- range $idx, $storage := .Values.searxngStorage.additionalStorages }}
  20. {{ printf "searxng-%v:" (int $idx) }}
  21. enabled: true
  22. {{- include "ix.v1.common.app.storageOptions" (dict "storage" $storage) | nindent 4 }}
  23. targetSelector:
  24. searxng:
  25. searxng:
  26. mountPath: {{ $storage.mountPath }}
  27. {{- end }}
  28. {{- end -}}