frigate
by alekc
NVR With Realtime Object Detection for IP Cameras
About this chart
frigate
NVR With Realtime Object Detection for IP Cameras
This Helm Chart installs Frigate on to Kubernetes.
Homepage: https://github.com/blakeblackshear/blakeshome-charts/tree/master/charts/frigate
Install
Using Helm, you can easily install and test Frigate in a Kubernetes cluster by running the following:
Add Helm repo
First, add the repo if you haven't already done so:
helm repo add blakeblackshear https://blakeblackshear.github.io/blakeshome-charts/
Minimum Config
At minimum, you'll need to define the following Frigate configuration properties. For information, see the Docs.
# values.yaml
config: |
mqtt:
host: "mqtt.example.com"
port: 1883
user: admin
password: "<your_mqtt_password>"
cameras:
# Define at least one camera
back:
ffmpeg:
inputs:
- path: rtsp://viewer:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2
roles:
- detect
Configuration Updates
Since the config key is stored in a configMap which is mounted as a read-only file, the Frigate UI will be unable to update the configuration, and config migration will fail.
If persistence.config.ephemeralWritableConfigYaml is set to true along with persistence.config.enabled,
the config.yml will be copied into the /config volume mount rather than mounted into it.
Copying the config file means migrations can run, and updates to settings, zones, etc.. will be
written to the running configuration. However as soon as the pod is restarted, the changes
will be lost, so you will have to retrieve the config.yml either from the pod, or
by performing a GET /api/config and updating your helm values config key with the new yaml.
Install Chart
Now install the chart:
helm upgrade --install \
my-release \
blakeblackshear/frigate \
-f values.yaml
Maintainers
| Name | Url | |
|---|---|---|
| blakeblackshear | [email protected] | |
| billimek | [email protected] |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Set Pod affinity rules |
| config | string | Omitted for brevity. See values.yaml. | frigate configuration - see Docs for more info |
| coral.enabled | bool | false | enables the use of a Coral device |
| coral.hostPath | string | "/dev/bus/usb" | path on the host to which to mount the Coral device |
| env | object | {} | additional ENV variables to set. Prefix with FRIGATE_ to target Frigate configuration values |
| envFromSecrets | list | [] | set environment variables from Secret(s) |
| extraVolumeMounts | list | [] | declare additional volume mounts |
| extraVolumes | list | [] | declare extra volumes to use for Frigate |
| fullnameOverride | string | "" | Overrides the Full Name of resources |
| gpu.nvidia.enabled | bool | false | Enables NVIDIA GPU compatibility. Must also use the "amd64nvidia" tagged image |
| gpu.nvidia.runtimeClassName | string | nil | Overrides the default runtimeClassName |
| image.pullPolicy | string | "IfNotPresent" | Docker image pull policy |
| image.repository | string | "ghcr.io/blakeblackshear/frigate" | Docker registry/repository to pull the image from |
| image.tag | string | "0.12.0" | Overrides the default tag (appVersion) used in Chart.yaml (Docker Hub) |
| imagePullSecrets | list | [] | Docker image pull policy |
| ingress.annotations | object | {} | annotations to configure your Ingress. See your Ingress Controller's Docs for more info. |
| ingress.enabled | bool | false | Enables the use of an Ingress Controller to front the Service and can provide HTTPS |
| ingress.hosts | list | [{"host":"chart.example.local","paths":[{"path":"/", "portName":"http-auth"}]}] | list of hosts and their paths and ports that ingress controller should repsond to. |
| ingress.tls | list | [] | list of TLS configurations |
| nameOverride | string | "" | Overrides the name of resources |
| nodeSelector | object | {} | Node Selector configuration |
| persistence.data.* | This config key is obsolete and should not be used. Use persistence.media.* and persistence.config.* instead. | ||
| persistence.config.enabled | bool | false | Enables persistence for the data directory |
| persistence.config.size | string | "10Gi" | size/capacity of the PVC |
| persistence.config.skipuninstall | bool | false | Do not delete the pvc upon helm uninstall |
| persistence.config.accessMode | string | "ReadWriteOnce" | access mode to use for the PVC |
| persistence.config.ephemeralWritableConfigYaml | bool | true | Copy config into volume mount for writable ephemeral config support |
| persistence.media.enabled | bool | false | Enables persistence for the data directory |
| persistence.media.size | string | "10Gi" | size/capacity of the PVC |
| persistence.media.skipuninstall | bool | false | Do not delete the pvc upon helm uninstall |
| persistence.media.accessMode | string | "ReadWriteOnce" | access mode to use for the PVC |
| podAnnotations | object | {} | Set additonal pod Annotations |
| probes.liveness.enabled | bool | true | |
| probes.liveness.failureThreshold | int | 5 | |
| probes.liveness.initialDelaySeconds | int | 30 | |
| probes.liveness.timeoutSeconds | int | 10 | |
| probes.readiness.enabled | bool | true | |
| probes.readiness.failureThreshold | int | 5 | |
| probes.readiness.initialDelaySeconds | int | 30 | |
| probes.readiness.timeoutSeconds | int | 10 | |
| probes.startup.enabled | bool | false | |
| probes.startup.failureThreshold | int | 30 | |
| probes.startup.periodSeconds | int | 10 | |
| resources | object | {} | Set resource limits/requests for the Pod(s) |
| securityContext | object | {} | Set Security Context |
| service.annotations | object | {} | |
| service.labels | object | {} | |
| service.loadBalancerIP | string | nil | Set specific IP address for LoadBalancer. service.type must be set to LoadBalancer |
| service.port | int | 5000 | Port the Service should communicate on |
| service.type | string | "ClusterIP" | Type of Service to use |
| shmSize | string | "1Gi" | amount of shared memory to use for caching |
| strategyType | string | "Recreate" | upgrade strategy type (e.g. Recreate or RollingUpdate) |
| tolerations | list | [] | Node toleration configuration |
Deploy frigate with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has frigate on a Hetzner server. Change the host, add apps from the marketplace, then copy the generated files. Providers and prices are samples, and nothing here is sent anywhere.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartfrigate is pinned at v7.8.0 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
- ApplySave opentenant.yaml and main.tf from the console, then run the commands below.
# opentenant.yaml, main.tf and dns.tf come from the builder below opentenant validate opentenant.yaml terraform init && terraform apply