From 3e94661e6dd3fa5bce730d297e1f8048b60530e0 Mon Sep 17 00:00:00 2001 From: gruberdev Date: Sun, 18 Feb 2024 22:04:35 -0300 Subject: [PATCH] [home] fixed frigate deployment config --- apps/home/frigate/base/cm.yaml | 4 +--- apps/home/frigate/base/deployment.yaml | 1 - apps/home/frigate/base/secret.yaml | 4 +++- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/apps/home/frigate/base/cm.yaml b/apps/home/frigate/base/cm.yaml index 314db1a78..ea8601665 100644 --- a/apps/home/frigate/base/cm.yaml +++ b/apps/home/frigate/base/cm.yaml @@ -20,7 +20,7 @@ data: person: 1000 go2rtc: streams: - hall_cam: exec:ffmpeg -hide_banner -re -headers "Authorization: Bearer {{FRIGATE_HA_TOKEN}}" -i http://home-assistant.homeassistant.svc.cluster.local:8123/api/camera_proxy/camera.acessoweb_scseg_com_br -rtsp_transport -c copy -f rtsp {{output}} + hall_cam: exec:ffmpeg -hide_banner -re -headers 'Authorization: Bearer {FRIGATE_HA_TOKEN}' -i http://home-assistant.homeassistant.svc.cluster.local:8123/api/camera_proxy/camera.acessoweb_scseg_com_br -rtsp_transport -c copy -f rtsp {{output}} cameras: hall_cam: enabled: false @@ -43,9 +43,7 @@ data: width: 416 height: 416 ffmpeg: - global_args: -hide_banner hwaccel_args: preset-nvidia-h264 - input_args: preset-rtsp-generic output_args: record: -f segment -segment_time 60 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an detect: -f rawvideo -pix_fmt yuv420p diff --git a/apps/home/frigate/base/deployment.yaml b/apps/home/frigate/base/deployment.yaml index 33ed8add9..526bedaa7 100644 --- a/apps/home/frigate/base/deployment.yaml +++ b/apps/home/frigate/base/deployment.yaml @@ -31,7 +31,6 @@ spec: envFrom: - secretRef: name: frigate-vars - optional: true livenessProbe: httpGet: path: / diff --git a/apps/home/frigate/base/secret.yaml b/apps/home/frigate/base/secret.yaml index 9e9388c74..950ad7b68 100644 --- a/apps/home/frigate/base/secret.yaml +++ b/apps/home/frigate/base/secret.yaml @@ -2,5 +2,7 @@ apiVersion: v1 kind: Secret metadata: name: frigate-vars + annotations: + avp.kubernetes.io/path: "kv/data/home" stringData: - FRIGATE_HA_TOKEN: + FRIGATE_HA_TOKEN: