Fix Frigate parked car re-detection and enable writable config

Remove car-specific max_frames (was causing forget-and-re-detect loop)
and set stationary interval to 0. Use initContainer to copy configmap
into writable emptyDir so UI changes (zones, masks) persist at runtime.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-02-15 17:32:07 -08:00
commit 5ad81dda32
3 changed files with 15 additions and 5 deletions

View file

@ -31,10 +31,9 @@ data:
detect:
enabled: true
stationary:
interval: 0
max_frames:
default: 1500
objects:
car: 150
objects:
track: [person, car, dog, cat, bird]

View file

@ -14,6 +14,15 @@ spec:
labels:
app: frigate
spec:
initContainers:
- name: copy-config
image: busybox:1.37
command: ["cp", "/config-ro/config.yml", "/config/config.yml"]
volumeMounts:
- name: config-ro
mountPath: /config-ro
- name: config
mountPath: /config
containers:
- name: frigate
image: ghcr.io/blakeblackshear/frigate:0.16.4-standard-arm64
@ -37,8 +46,7 @@ spec:
key: password
volumeMounts:
- name: config
mountPath: /config/config.yml
subPath: config.yml
mountPath: /config
- name: recordings
mountPath: /media/frigate
- name: database
@ -65,9 +73,11 @@ spec:
initialDelaySeconds: 15
periodSeconds: 10
volumes:
- name: config
- name: config-ro
configMap:
name: frigate-config
- name: config
emptyDir: {}
- name: recordings
persistentVolumeClaim:
claimName: frigate-recordings

View file

@ -0,0 +1 @@
Fix Frigate repeatedly alerting on parked cars by removing per-object max_frames and setting stationary interval to 0. Make Frigate config writable so UI changes (zones, masks) persist within a pod lifecycle.