123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869 |
- {{- define "frigate.persistence" -}}
- persistence:
- config:
- enabled: true
- type: {{ .Values.frigateStorage.config.type }}
- datasetName: {{ .Values.frigateStorage.config.datasetName | default "" }}
- hostPath: {{ .Values.frigateStorage.config.hostPath | default "" }}
- targetSelector:
- frigate:
- frigate:
- mountPath: /config
- 01-init:
- mountPath: /config
- media:
- enabled: true
- type: {{ .Values.frigateStorage.media.type }}
- datasetName: {{ .Values.frigateStorage.media.datasetName | default "" }}
- hostPath: {{ .Values.frigateStorage.media.hostPath | default "" }}
- targetSelector:
- frigate:
- frigate:
- mountPath: /media
- tmp:
- enabled: true
- type: emptyDir
- targetSelector:
- frigate:
- frigate:
- mountPath: /tmp
- cache:
- enabled: true
- type: emptyDir
- medium: Memory
- size: {{ printf "%vGi" .Values.frigateStorage.cache.sizeGiB }}
- targetSelector:
- frigate:
- frigate:
- mountPath: /tmp/cache
- shm:
- enabled: true
- type: emptyDir
- medium: Memory
- size: {{ printf "%vMi" .Values.frigateStorage.shm.sizeMiB }}
- targetSelector:
- frigate:
- frigate:
- mountPath: /dev/shm
- {{- if .Values.frigateConfig.mountUSBBus }}
- usb-bus:
- enabled: true
- type: hostPath
- hostPath: /dev/bus/usb
- targetSelector:
- frigate:
- frigate:
- mountPath: /dev/bus/usb
- {{- end -}}
- {{- range $idx, $storage := .Values.frigateStorage.additionalStorages }}
- {{ printf "frigate-%v" (int $idx) }}:
- enabled: true
- type: {{ $storage.type }}
- datasetName: {{ $storage.datasetName | default "" }}
- hostPath: {{ $storage.hostPath | default "" }}
- targetSelector:
- frigate:
- frigate:
- mountPath: {{ $storage.mountPath }}
- {{- end }}
- {{- end -}}
|