frigate
by benji
NVR With Realtime Object Detection for IP Cameras
About this chart
frigate
NVR With Realtime Object Detection for IP Cameras
This chart installs Frigate on Kubernetes.
Fork
This chart started as a fork of blakeblackshear/blakeshome-charts'
frigate chart, which appears to be unmaintained (open issues and pull
requests going back years with no response). It's maintained and improved
here going forward — see the changelog below for what's changed since the
fork.
Installing the Chart
This chart is published two ways: as a classic Helm repo via GitHub Pages (releases only), and as an OCI artifact via the GitHub Container Registry (releases and alpha builds).
Via the classic repo:
$ helm repo add newbenji-charts https://newbenji.github.io/charts/
$ helm repo update
$ helm install my-release newbenji-charts/frigate --version 7.12.1
Via OCI:
$ helm install my-release oci://ghcr.io/newbenji/charts/frigate --version 7.12.1
To just download the chart package:
$ helm pull oci://ghcr.io/newbenji/charts/frigate --version 7.12.1
Minimum Config
At minimum, you'll need to define the following Frigate configuration properties. For more 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
detect:
width: 1280
height: 720
config accepts either a native YAML map (as above) or a |-block string, if you prefer to paste Frigate's config verbatim.
Upgrading
7.12.0
The default image is Frigate 0.18.2. Frigate 0.18 changes the config format for GenAI (a map of providers with roles), zones and masks (enabled and friendly_name), and removes snapshots.clean_copy. Frigate migrates a writable config.yml itself. With the default read-only ConfigMap, update config in your values. See the 0.18.0 release notes. To stay on 0.17, set image.tag: "0.17.2".
Maintainers
| Name | Url | |
|---|---|---|
| blakeblackshear | [email protected] | |
| billimek | [email protected] | |
| newbenji | [email protected] |
Source Code
Values
| Key | Type | Default | Description |
|---|---|---|---|
| affinity | object | {} | Set Pod affinity rules |
| config | string | "mqtt:\n # Required: host name\n host: mqtt.server.com\n # Optional: port (default: shown below)\n port: 1883\n # Optional: topic prefix (default: shown below)\n # WARNING: must be unique if you are running multiple instances\n topic_prefix: frigate\n # Optional: client id (default: shown below)\n # WARNING: must be unique if you are running multiple instances\n client_id: frigate\n # Optional: user\n user: mqtt_user\n # Optional: password\n # NOTE: Environment variables that begin with 'FRIGATE_' may be referenced in {}.\n # eg. password: '{FRIGATE_MQTT_PASSWORD}'\n password: password\n # Optional: interval in seconds for publishing stats (default: shown below)\n stats_interval: 60\n\ndetectors:\n # coral:\n # type: edgetpu\n # device: usb\n cpu1:\n type: cpu\n\n# cameras:\n# # Name of your camera\n# front_door:\n# ffmpeg:\n# inputs:\n# - path: rtsp://{FRIGATE_RTSP_USERNAME}:{FRIGATE_RTSP_PASSWORD}@10.0.10.10:554/cam/realmonitor?channel=1&subtype=2\n# roles:\n# - detect\n# - rtmp\n# width: 1280\n# height: 720\n# fps: 5\n" | frigate configuration - see Docs for more info. Can be given as a ` |
| 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 |
| dnsConfig | object | {} | Optional pod-level dnsConfig (e.g. to tune ndots). See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config |
| env | object | {} | additional ENV variables to set. Prefix with FRIGATE_ to target Frigate configuration values |
| envFromSecrets | list | [] | set environment variables from Secret(s) |
| extraInitContainers | list | [] | Define extra init containers |
| 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. Requires a Frigate image built with NVIDIA/TensorRT support and the NVIDIA device plugin/runtime installed on the node - see https://github.com/blakeblackshear/frigate/pkgs/container/frigate for available tags |
| gpu.nvidia.runtimeClassName | string | nil | Overrides the default runtimeClassName |
| httpRoute.annotations | object | {} | Annotations to add to the HTTPRoute |
| httpRoute.enabled | bool | false | Expose Frigate via a Gateway API HTTPRoute instead of an Ingress. Requires the Gateway API CRDs and a Gateway to already exist in the cluster. Mutually exclusive with ingress.enabled |
| httpRoute.hostnames | list | [] | Hostnames the route matches. Leave empty to match all hostnames on the parent Gateway listener(s) |
| httpRoute.labels | object | {} | Additional labels to add to the HTTPRoute |
| httpRoute.matches | list | [{"path":"/","pathType":"PathPrefix","portName":"http-auth"}] | Path matches routed to the Frigate service. portName is one of the Service's named ports (http, http-auth, rtmp, rtsp, webrtc-tcp, webrtc-udp, go2rtc-admin) |
| httpRoute.parentRefs | list | [{"name":""}] | References to the Gateway(s) this route attaches to |
| 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 | nil | Overrides the default tag (appVersion) used in Chart.yaml. See available tags at https://github.com/blakeblackshear/frigate/pkgs/container/frigate |
| 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. Mutually exclusive with httpRoute.enabled |
| ingress.hosts | list | [{"host":"chart.example.local","paths":[{"path":"/","portName":"http-auth"}]}] | alternatively use http if anonymous auth is allowed |
| ingress.ingressClassName | string | nil | ingressClassName for using on clusters with multiple ingresses, default is null |
| ingress.tls | list | [] | list of TLS configurations |
| nameOverride | string | "" | Overrides the name of resources |
| networkPolicy.allowSameNamespace | bool | true | Allow incoming traffic from all pods in the release namespace |
| networkPolicy.enabled | bool | false | Create a NetworkPolicy that blocks incoming traffic to the Frigate pod, except what is allowed below. Outgoing traffic is not restricted. Traffic from an Ingress controller or a Gateway in another namespace must be allowed in ingress. With Cilium's Gateway API, Envoy uses the reserved identity "ingress", which a NetworkPolicy cannot match: allow it with a CiliumClusterwideNetworkPolicy (fromEntities: [ingress]) instead. Kubelet probes from the node are allowed by most CNIs (Cilium always allows the local node). |
| networkPolicy.ingress | list | [] | More NetworkPolicy ingress rules, added as-is, e.g. [{from: [{namespaceSelector: {matchLabels: {kubernetes.io/metadata.name: monitoring}}}], ports: [{port: 8123, protocol: TCP}]}] |
| nodeSelector | object | {} | Node Selector configuration |
| persistence.config.accessMode | string | "ReadWriteOnce" | access mode to use for the PVC |
| persistence.config.enabled | bool | false | Enables persistence for the config directory |
| persistence.config.ephemeralWritableConfigYaml | bool | true | |
| persistence.config.seedOnly | bool | false | When true (and ephemeralWritableConfigYaml/persistence.config.enabled are both true), only seed config.yml from the ConfigMap if it doesn't already exist on the PVC, instead of overwriting it on every pod start. This lets Frigate's UI make changes that actually persist across restarts. The pod won't be restarted on values.config changes either, since they wouldn't take effect once seeded |
| persistence.config.size | string | "100Mi" | size/capacity of the PVC |
| persistence.config.skipuninstall | bool | false | Do not delete the pvc upon helm uninstall |
| persistence.data.accessMode | string | "ReadWriteOnce" | |
| persistence.data.enabled | bool | false | |
| persistence.data.size | string | "10Gi" | |
| persistence.data.skipuninstall | bool | false | |
| persistence.media.accessMode | string | "ReadWriteOnce" | access mode to use for the PVC |
| persistence.media.enabled | bool | false | Enables persistence for the media directory |
| persistence.media.size | string | "10Gi" | size/capacity of the PVC |
| persistence.media.skipuninstall | bool | false | Do not delete the pvc upon helm uninstall |
| podAnnotations | object | {} | Set additional pod Annotations |
| podSecurityContext | object | {} | will override it for frigate container |
| priorityClassName | string | "" | Name of a PriorityClass to assign to the Pod. Leave empty for no priority (default scheduling) |
| 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 Frigate Container Security Context |
| service.annotations | object | {} | |
| service.ipFamilies | list | [] | |
| service.ipFamilyPolicy | string | "SingleStack" | |
| 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) |
| tmpfs | object | {"enabled":true,"sizeLimit":"1Gi"} | use memory for tmpfs (mounted to /tmp) |
| tolerations | list | [] | Node toleration configuration |
Values
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.12.1 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