kube-cascade/frigate/values.yaml

141 lines
3.0 KiB
YAML

image:
tag: "0.12.0-tensorrt"
envFromSecrets:
- mqtt-broker
- rtsp-secret
config: |
ffmpeg:
hwaccel_args: preset-nvidia-h264
go2rtc:
rtsp:
username: "${FRIGATE_RTSP_USER}"
password: "${FRIGATE_RTSP_PASSWORD}"
streams:
cammy:
- "rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@172.28.2.2:554"
mqtt:
enabled: True
user: "{FRIGATE_MQTT_USER}"
password: "{FRIGATE_MQTT_PASSWORD}"
port: 1883
host: 172.16.17.83
record:
enabled: True
events:
retain:
default: 10
retain:
days: 7
mode: motion
cameras:
cammy: # <------ Name the camera
ffmpeg:
output_args:
record: preset-record-generic-audio-copy
inputs:
- path: "rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@127.0.0.1:8554/cammy"
input_args: preset-rtsp-restream
roles:
- record
- detect
#- path: "rtsp://{FRIGATE_RTSP_USER}:{FRIGATE_RTSP_PASSWORD}@172.28.2.2:554/cam/realmonitor?channel=1&subtype=0"
# roles:
# - detect
# - record
detect:
enabled: True # <---- disable detection until you have a working camera feed
width: 2592 # <---- update for your camera's resolution
height: 1944 # <---- update for your camera's resolution
live:
stream_name: cammy
objects:
track:
- person
- car
- dog
filters:
person:
mask: 1869,962,1672,667
motion:
mask:
- 2592,0,2592,566,1811,389,1735,204,1802,69,1865,86,1909,59,1874,0
zones:
left_street:
coordinates: 0,366,535,263,1337,244,1284,440,697,413,0,503
sidewalk:
coordinates: 747,629,0,676,0,775,1491,733,1617,678,1756,703,2211,741,2183,682,1869,644
steps:
coordinates: 2592,1531,2314,1472,1613,1004,1404,1002,1724,1944,2592,1944
record:
events:
required_zones:
- steps
- sidewalk
- left_street
detectors:
tensorrt:
type: tensorrt
device: 0 #This is the default, select the first GPU
model:
path: /trt-models/yolov7-640.trt
input_tensor: nchw
input_pixel_format: rgb
width: 640
height: 640
service:
type: ClusterIP
nodeSelector:
nvidia.com/gpu.family: pascal
gpu:
nvidia:
enabled: true
runtimeClassName: nvidia
ingress:
enabled: false
hosts:
- host: frigate.strudelline.net
paths:
- /
extraVolumeMounts:
- name: trt-models
mountPath: /trt-models
- name: data
mountPath: /media
subPath: media
- name: cctv-synology
mountPath: /media/frigate/clips
subPath: clips
- name: cctv-synology
mountPath: /media/frigate/recordings
subPath: recordings
extraVolumes:
- name: trt-models
persistentVolumeClaim:
claimName: trt-models
- name: cctv-synology
nfs:
server: 172.16.18.1
path: /volume1/cctv/frigate
persistence:
data:
enabled: true
skipuninstall: true
size: 100Gi