From 5ad81dda325a0de1206ea7a62a167b02e23f5a94 Mon Sep 17 00:00:00 2001 From: Erich Blume Date: Sun, 15 Feb 2026 17:32:07 -0800 Subject: [PATCH] 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 --- argocd/manifests/frigate/configmap.yaml | 3 +-- argocd/manifests/frigate/deployment.yaml | 16 +++++++++++++--- .../changelog.d/frigate-stationary-fix.bugfix.md | 1 + 3 files changed, 15 insertions(+), 5 deletions(-) create mode 100644 docs/changelog.d/frigate-stationary-fix.bugfix.md diff --git a/argocd/manifests/frigate/configmap.yaml b/argocd/manifests/frigate/configmap.yaml index 629f8ee..d07989d 100644 --- a/argocd/manifests/frigate/configmap.yaml +++ b/argocd/manifests/frigate/configmap.yaml @@ -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] diff --git a/argocd/manifests/frigate/deployment.yaml b/argocd/manifests/frigate/deployment.yaml index 34c50ef..9310a50 100644 --- a/argocd/manifests/frigate/deployment.yaml +++ b/argocd/manifests/frigate/deployment.yaml @@ -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 diff --git a/docs/changelog.d/frigate-stationary-fix.bugfix.md b/docs/changelog.d/frigate-stationary-fix.bugfix.md new file mode 100644 index 0000000..2010cda --- /dev/null +++ b/docs/changelog.d/frigate-stationary-fix.bugfix.md @@ -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.