[frigate] Update frigate to 8.0.0 (#1425)

This commit is contained in:
Bᴇʀɴᴅ Sᴄʜᴏʀɢᴇʀs 2022-02-21 21:30:09 +01:00 committed by GitHub
parent 24832aaef0
commit 4b4e136fba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 69 additions and 62 deletions

View File

@ -1,8 +1,8 @@
apiVersion: v2 apiVersion: v2
appVersion: v0.9.4 appVersion: 0.10.0-amd64
description: NVR With Realtime Object Detection for IP Cameras description: NVR With Realtime Object Detection for IP Cameras
name: frigate name: frigate
version: 7.1.0 version: 8.0.0
kubeVersion: ">=1.16.0-0" kubeVersion: ">=1.16.0-0"
keywords: keywords:
- frigate - frigate
@ -27,4 +27,9 @@ dependencies:
annotations: annotations:
artifacthub.io/changes: | artifacthub.io/changes: |
- kind: changed - kind: changed
description: Upgraded `common` chart dependency to version `4.3.0`. description: **Breaking:** Updated image tag to version `0.10.0-amd64`. See the application release notes for the breaking changes.
links:
- name: Application release notes
url: https://github.com/blakeblackshear/frigate/releases/tag/v0.10.0
- kind: changed
description: **Breaking:** Use the common library built-in configMap for configuration.

View File

@ -3,30 +3,24 @@ persistence:
enabled: true enabled: true
type: emptyDir type: emptyDir
mountPath: /data mountPath: /data
config: |
detectors: configmap:
cpu1: config:
type: cpu enabled: true
num_threads: 1 data:
mqtt: config.yml: |
host: 192.168.1.2 database:
client_id: frigate path: /data/frigate.db
user: frigate mqtt:
password: frigate host: test.mosquitto.org
database: cameras:
path: /data/frigate.db back:
detect: ffmpeg:
fps: 4 inputs:
height: 360 - path: rtsp://10.0.10.10:554/rtsp
width: 640 roles:
cameras: - detect
camera_1: - rtmp
ffmpeg: detect:
inputs: width: 1280
- path: rtsp://admin:admin@192.168.1.3:5554//h264Preview_01_sub height: 720
roles:
- detect
- rtmp
zones:
door:
coordinates: 481,42,596,48,565,267,469,228

View File

@ -2,18 +2,23 @@
{{- include "common.values.setup" . }} {{- include "common.values.setup" . }}
{{/* Append the hardcoded settings */}} {{/* Append the hardcoded settings */}}
{{- define "frigate.configValues" -}} {{- define "frigate.harcodedValues" -}}
persistence: {{- if .Values.configmap.config.enabled }}
frigate-config: {{/* merge frigate specific annotations with podAnnotations*/}}
enabled: "true" podAnnotations:
mountPath: "/config/config.yml" configmap/checksum: "{{ .Values.configmap.config.data | toYaml | sha256sum }}"
subPath: "config.yml"
type: "custom" {{/* Append the configMap volume to the volumes */}}
volumeSpec: persistence:
configMap: config:
name: {{ printf "%v-config" (include "common.names.fullname" .) }} enabled: true
type: "configMap"
name: "{{ printf "%v-config" (include "common.names.fullname" .) }}"
mountPath: "/config/config.yml"
subPath: "config.yml"
{{- end }}
{{- end -}} {{- end -}}
{{- $_ := mergeOverwrite .Values (include "frigate.configValues" . | fromYaml) -}} {{- $_ := mergeOverwrite .Values (include "frigate.harcodedValues" . | fromYaml) -}}
{{/* Render the templates */}} {{/* Render the templates */}}
{{ include "common.all" . }} {{ include "common.all" . }}

View File

@ -1,9 +0,0 @@
apiVersion: v1
kind: ConfigMap
metadata:
name: {{ include "common.names.fullname" . }}-config
labels:
{{- include "common.labels" . | nindent 4 }}
data:
config.yml: |
{{- tpl .Values.config $ | nindent 4 }}

View File

@ -9,7 +9,8 @@ image:
# -- image repository # -- image repository
repository: blakeblackshear/frigate repository: blakeblackshear/frigate
# -- image tag # -- image tag
tag: 0.9.4-amd64 # @default -- chart.appVersion
tag:
# -- image pull policy # -- image pull policy
pullPolicy: IfNotPresent pullPolicy: IfNotPresent
@ -95,14 +96,25 @@ resources: {}
# gpu.intel.com/i915: 1 # gpu.intel.com/i915: 1
# memory: 4096Mi # memory: 4096Mi
# -- See [docs](https://blakeblackshear.github.io/frigate/) for more details. configmap:
# @default -- see URL to default config config:
config: | # -- Store frigate configuration as a ConfigMap
mqtt: enabled: true
host: test.mosquitto.org
topic_prefix: frigate # -- See [docs](https://blakeblackshear.github.io/frigate/) for more details.
database: # @default -- see URL to default config
path: /data/frigate.db data:
detectors: config.yml: |
cpu1: mqtt:
type: cpu host: mqtt.server.com
cameras:
back:
ffmpeg:
inputs:
- path: rtsp://demo:demo@ipvmdemo.dyndns.org:5541/onvif-media/media.amp?profile=profile_1_h264&sessiontimeout=60&streamtype=unicast
roles:
- detect
- rtmp
detect:
width: 1280
height: 720