diff --git a/apps/frigate/config.yaml b/apps/frigate/config.yaml index 794d3ac..2435a4d 100644 --- a/apps/frigate/config.yaml +++ b/apps/frigate/config.yaml @@ -4,5 +4,42 @@ metadata: name: frigate namespace: frigate data: - PUID: "1000" - PGID: "1000" + config.yml: | + tls: + enabled: false + + mqtt: + enabled: true + host: emqx.emqx.svc.cluster.local + user: frigate + password: '{FRIGATE_MQTT_PASSWORD}' + + ffmpeg: + hwaccel_args: preset-nvidia + + go2rtc: + streams: + c200_1: + - rtsp://{FRIGATE_RTSP_USERNAME}:{FRIGATE_RTSP_PASSWORD}@192.168.18.20:554/stream1 + c200_1_sub: + - rtsp://{FRIGATE_RTSP_USERNAME}:{FRIGATE_RTSP_PASSWORD}@192.168.18.20:554/stream2 + cameras: + tapoC200_1: + enabled: true + onvif: + host: 192.168.18.20 + port: 2020 + user: '{FRIGATE_RTSP_USERNAME}' + password: '{FRIGATE_RTSP_PASSWORD}' + live: + stream_name: c200_1 + ffmpeg: + output_args: + record: preset-record-generic + inputs: + - path: rtsp://127.0.0.1:8554/c200_1?video&audio + input_args: preset-rtsp-restream + roles: + - record + - detect + - audio diff --git a/apps/frigate/deployment.yaml b/apps/frigate/deployment.yaml index 855d613..bebb4b5 100644 --- a/apps/frigate/deployment.yaml +++ b/apps/frigate/deployment.yaml @@ -38,6 +38,9 @@ spec: volumeMounts: - mountPath: /config name: frigate-config + - mountPath: /config/config.yml + subPath: config.yml + name: frigate-configmap - mountPath: /media/frigate name: frigate-media - mountPath: /tmp/cache @@ -46,6 +49,12 @@ spec: - name: frigate-config persistentVolumeClaim: claimName: frigate-config + - name: frigate-configmap + configMap: + name: frigate + items: + - key: frigate.yml + path: config.yml - name: frigate-media persistentVolumeClaim: claimName: frigate-media