feat(helm)!: Update Helm release frigate to v8

This commit is contained in:
feisar-bot
2022-05-02 08:28:10 +00:00
committed by auricom
parent 63ab505dad
commit e857c21073
4 changed files with 168 additions and 92 deletions

View File

@@ -0,0 +1,78 @@
---
logger:
default: info
logs:
frigate.record: debug
mqtt:
host: emqx
topic_prefix: frigate
user: "{MQTT_USER}"
password: "{MQTT_PASSWORD}"
database:
path: /data/frigate.db
detectors:
coral:
type: edgetpu
device: usb
objects:
track:
- person
filters:
person:
min_area: 2500
max_area: 100000
threshold: 0.7
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
# Enable audio on recordings...
# might cause issues on recording playback
# output_args:
# record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
rtmp:
enabled: true
# snapshots:
# enabled: true
# timestamp: false
# bounding_box: true
# retain:
# default: 7
# record:
# enabled: true
# retain:
# days: 2
# mode: motion
# events:
# retain:
# default: 5
# mode: active_objects
cameras:
# --
frigate_river:
ffmpeg:
inputs:
- path: rtsp://192.168.1.2:7447/GtBsJuujvMQwA42n
roles:
- detect
- path: rtsp://192.168.1.2:7447/b2K0uh13iekTbyA1
roles:
- rtmp
- record
detect:
width: 1024
height: 576
fps: 10

View File

@@ -8,90 +8,61 @@ spec:
interval: 5m interval: 5m
chart: chart:
spec: spec:
# renovate: registryUrl=https://k8s-at-home.com/charts/ chart: kah-common-chart
chart: frigate version: 1.1.1
version: 7.1.0
sourceRef: sourceRef:
kind: HelmRepository kind: HelmRepository
name: k8s-at-home-charts name: k8s-at-home-charts
namespace: flux-system namespace: flux-system
interval: 5m interval: 5m
install:
createNamespace: true
values: values:
fullnameOverride: *app
image: image:
repository: blakeblackshear/frigate repository: docker.io/blakeblackshear/frigate
tag: 0.9.0-f110a26-amd64 tag: 0.10.1-amd64
env:
securityContext: TZ: "Europe/Paris"
privileged: true MQTT_USER: "${SECRET_MQTT_USERNAME}"
MQTT_PASSWORD: ${SECRET_MQTT_PASSWORD}
persistence:
data:
enabled: true
existingClaim: frigate-config
mountPath: /data
usb:
enabled: true
type: hostPath
hostPath: /dev/bus/usb
cache:
enabled: true
type: emptyDir
medium: Memory
sizeLimit: 2Gi
mountPath: /dev/shm
config: |
mqtt:
host: emqx
topic_prefix: frigate
user: ${SECRET_MQTT_USERNAME}
password: ${SECRET_MQTT_PASSWORD}
database:
path: /data/frigate.db
detectors:
coral:
type: edgetpu
device: usb
objects:
track:
- person
- dog
- cat
filters:
person:
min_area: 2500
max_area: 100000
threshold: 0.7
dog:
min_area: 1000
max_area: 10000
threshold: 0.7
cat:
min_area: 1000
max_area: 10000
threshold: 0.7
ffmpeg:
hwaccel_args:
- -hwaccel
- vaapi
- -hwaccel_device
- /dev/dri/renderD128
- -hwaccel_output_format
- yuv420p
podAnnotations:
configmap.reloader.stakater.com/reload: "frigate-config"
service: service:
main: main:
annotations: ports:
prometheus.io/probe: "true" http:
prometheus.io/protocol: http port: &port 5000
probes:
liveness:
enabled: true
custom: true
spec:
httpGet:
path: /api/version
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
readiness:
enabled: true
custom: true
spec:
httpGet:
path: /api/version
port: *port
initialDelaySeconds: 0
periodSeconds: 10
timeoutSeconds: 1
failureThreshold: 3
startup:
enabled: true
custom: true
spec:
httpGet:
path: /api/version
port: *port
failureThreshold: 30
periodSeconds: 10
ingress: ingress:
main: main:
enabled: true enabled: true
@@ -99,18 +70,41 @@ spec:
annotations: annotations:
nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify" nginx.ingress.kubernetes.io/auth-url: "http://authelia.networking.svc.cluster.local/api/verify"
nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}" nginx.ingress.kubernetes.io/auth-signin: "https://login.${SECRET_CLUSTER_DOMAIN}"
# traefik.ingress.kubernetes.io/router.entrypoints: "websecure"
# traefik.ingress.kubernetes.io/router.middlewares: networking-forward-auth@kubernetescrd
hosts: hosts:
- host: "frigate.${SECRET_CLUSTER_DOMAIN}" - host: &host "frigate.${SECRET_CLUSTER_DOMAIN}"
paths: paths:
- path: / - path: /
pathType: Prefix pathType: Prefix
tls: tls:
- hosts: - hosts:
- "frigate.${SECRET_CLUSTER_DOMAIN}" - *host
secretName: "${SECRET_CLUSTER_CERTIFICATE_DEFAULT}" securityContext:
privileged: true
persistence:
config:
enabled: true
type: configMap
name: *app
subPath: config.yaml
mountPath: /config/config.yml
readOnly: true
data:
enabled: true
existingClaim: frigate-config
usb:
enabled: true
type: hostPath
hostPath: /dev/bus/usb
hostPathType: Directory
mountPath: /dev/bus/usb
cache:
enabled: true
type: emptyDir
medium: Memory
sizeLimit: 4Gi
mountPath: /dev/shm
podAnnotations:
configmap.reloader.stakater.com/reload: *app
affinity: affinity:
nodeAffinity: nodeAffinity:
requiredDuringSchedulingIgnoredDuringExecution: requiredDuringSchedulingIgnoredDuringExecution:
@@ -120,16 +114,11 @@ spec:
operator: In operator: In
values: values:
- "true" - "true"
- key: feature.node.kubernetes.io/custom-intel-gpu
operator: In
values:
- "true"
resources: resources:
requests: requests:
gpu.intel.com/i915: 1
memory: 100Mi
cpu: 500m cpu: 500m
memory: 1000Mi
gpu.intel.com/i915: "1"
limits: limits:
gpu.intel.com/i915: 1 memory: 6000Mi
memory: 2000Mi gpu.intel.com/i915: "1"

View File

@@ -1,5 +1,14 @@
apiVersion: kustomize.config.k8s.io/v1beta1 apiVersion: kustomize.config.k8s.io/v1beta1
kind: Kustomization kind: Kustomization
resources: resources:
- helm-release.yaml
- volume.yaml - volume.yaml
- helm-release.yaml
namespace: home-automation
configMapGenerator:
- name: frigate
files:
- config.yaml
generatorOptions:
disableNameSuffixHash: true
annotations:
kustomize.toolkit.fluxcd.io/substitute: disabled

View File

@@ -3,7 +3,7 @@ kind: Kustomization
resources: resources:
- namespace.yaml - namespace.yaml
- emqx - emqx
- frigate # - frigate
- home-assistant - home-assistant
- zigbee2mqtt - zigbee2mqtt
- zwavejs2mqtt - zwavejs2mqtt