Fix frigate persistance and detection
This commit is contained in:
@@ -50,6 +50,11 @@ config: |
|
|||||||
|
|
||||||
record:
|
record:
|
||||||
enabled: True
|
enabled: True
|
||||||
|
# Retention is driven entirely by frigate.db: expire_existing_camera_recordings()
|
||||||
|
# only unlinks files it finds rows for. Reconcile disk against the DB so orphaned
|
||||||
|
# segments (e.g. if the config PVC is ever lost) get reclaimed instead of
|
||||||
|
# accumulating until /media fills up.
|
||||||
|
sync_recordings: True
|
||||||
retain:
|
retain:
|
||||||
days: 3
|
days: 3
|
||||||
mode: motion
|
mode: motion
|
||||||
@@ -108,6 +113,9 @@ config: |
|
|||||||
- detect
|
- detect
|
||||||
- rtmp
|
- rtmp
|
||||||
- record
|
- record
|
||||||
|
# Amcrest 5MP: without an explicit detect size frigate uses the native
|
||||||
|
# 2960x1668 stream, i.e. 7.1MiB frames in /dev/shm vs 1.3MiB for the 720p
|
||||||
|
# cameras. Detection runs at 300x300 anyway, so cap detect at 720p.
|
||||||
workshop_a:
|
workshop_a:
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -116,6 +124,9 @@ config: |
|
|||||||
- detect
|
- detect
|
||||||
- rtmp
|
- rtmp
|
||||||
- record
|
- record
|
||||||
|
detect:
|
||||||
|
width: 1280
|
||||||
|
height: 720
|
||||||
workshop_b:
|
workshop_b:
|
||||||
ffmpeg:
|
ffmpeg:
|
||||||
inputs:
|
inputs:
|
||||||
@@ -124,6 +135,9 @@ config: |
|
|||||||
- detect
|
- detect
|
||||||
- rtmp
|
- rtmp
|
||||||
- record
|
- record
|
||||||
|
detect:
|
||||||
|
width: 1280
|
||||||
|
height: 720
|
||||||
|
|
||||||
ingress:
|
ingress:
|
||||||
enabled: true
|
enabled: true
|
||||||
@@ -141,6 +155,16 @@ ingress:
|
|||||||
- "*.k-space.ee"
|
- "*.k-space.ee"
|
||||||
|
|
||||||
persistence:
|
persistence:
|
||||||
|
# frigate.db lives here. On an emptyDir it is recreated blank on every pod
|
||||||
|
# restart, which orphans every recording already on /media - retention then
|
||||||
|
# has no rows to expire and the media volume grows without bound.
|
||||||
|
# ephemeralWritableConfigYaml (chart default) keeps an initContainer that
|
||||||
|
# re-copies config.yml from the ConfigMap on each start, so the `config:`
|
||||||
|
# block above stays authoritative.
|
||||||
|
config:
|
||||||
|
enabled: true
|
||||||
|
storageClass: "ceph-rbd"
|
||||||
|
size: 5Gi
|
||||||
media:
|
media:
|
||||||
enabled: true
|
enabled: true
|
||||||
storageClass: "hdd-ceph"
|
storageClass: "hdd-ceph"
|
||||||
|
|||||||
Reference in New Issue
Block a user