diff --git a/frigate/application.yml b/frigate/application.yml index 52098f3..ca7a582 100644 --- a/frigate/application.yml +++ b/frigate/application.yml @@ -22,22 +22,9 @@ data: stats_interval: 60 detectors: - # coral: - # type: edgetpu - # device: usb - #cpu1: - #type: cpu - ov: - type: openvino - device: CPU - - model: - width: 300 - height: 300 - input_tensor: nhwc - input_pixel_format: bgr - path: /openvino-model/ssdlite_mobilenet_v2.xml - labelmap_path: /openvino-model/coco_91cl_bkgr.txt + coral: + type: edgetpu + device: usb record: enabled: True @@ -99,7 +86,7 @@ spec: resources: requests: storage: "100Mi" - storageClassName: "frigate-config" + storageClassName: "longhorn" --- # Source: frigate/templates/service.yaml apiVersion: v1 @@ -165,14 +152,23 @@ spec: app.kubernetes.io/name: frigate app.kubernetes.io/instance: frigate annotations: - checksum/configmap: 9de9e29d499af45a0e7392032d64d26d8e13e12211971a307f201c97ac91f173 + checksum/configmap: e87f827cda067d3ff35d52fb3cef3286e9670da77c9b83a5518b35f14f6aaa19 spec: + nodeSelector: + dedicated: nvr + tolerations: + - key: dedicated + operator: Equal + value: nvr + effect: NoSchedule containers: - name: frigate image: "ghcr.io/blakeblackshear/frigate:0.14.0" imagePullPolicy: IfNotPresent securityContext: - {} + privileged: true + capabilities: + add: ["SYS_RAWIO"] ports: - name: http containerPort: 5000 @@ -209,6 +205,8 @@ spec: - secretRef: name: frigate-mqtt-credentials volumeMounts: + - mountPath: /dev/bus/usb + name: coral-dev - mountPath: /config/config.yml subPath: config.yml name: configmap @@ -228,6 +226,12 @@ spec: - name: configmap configMap: name: frigate + - name: coral-dev + hostPath: + path: /dev/bus/usb + - name: coral-dev + hostPath: + path: /dev/bus/usb - name: config persistentVolumeClaim: claimName: frigate-config diff --git a/frigate/transcode.yml b/frigate/transcode.yml index 4526802..9ad0652 100644 --- a/frigate/transcode.yml +++ b/frigate/transcode.yml @@ -27,15 +27,15 @@ spec: - key: app.kubernetes.io/name operator: In values: - - frigate + - go2rtc topologyKey: "kubernetes.io/hostname" - # nodeSelector: - # dedicated: nvr - # tolerations: - # - key: dedicated - # operator: Equal - # value: nvr - # effect: NoSchedule + nodeSelector: + dedicated: nvr + tolerations: + - key: dedicated + operator: Equal + value: nvr + effect: NoSchedule containers: - name: go2rtc image: alexxit/go2rtc @@ -51,7 +51,8 @@ spec: subPath: config.yml name: config resources: - {} + limits: + nvidia.com/gpu: 1 volumes: - name: config secret: diff --git a/frigate/values.yaml b/frigate/values.yaml index 526f040..4687e09 100644 --- a/frigate/values.yaml +++ b/frigate/values.yaml @@ -28,7 +28,7 @@ envFromSecrets: coral: # -- enables the use of a Coral device - enabled: false + enabled: true # -- path on the host to which to mount the Coral device hostPath: /dev/bus/usb @@ -60,14 +60,14 @@ config: | stats_interval: 60 detectors: - # coral: - # type: edgetpu - # device: usb + coral: + type: edgetpu + device: usb #cpu1: #type: cpu - ov: - type: openvino - device: CPU + #ov: + # type: openvino + # device: CPU model: width: 300 @@ -167,7 +167,7 @@ ingress: persistence: config: enabled: true - storageClass: "frigate-config" + storageClass: "longhorn" accessMode: ReadWriteOnce size: 100Mi skipuninstall: false