forked from k-space/kube
		
	frigate: use coral for detect, nvidia gpu for transcode and longhorn for config storage
This commit is contained in:
		@@ -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
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user