frigate

by benji

Helm chartv7.12.1App 0.18.2Verified publisher

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

NameEmailUrl
blakeblackshear[email protected]
billimek[email protected]
newbenji[email protected]

Source Code

Values

KeyTypeDefaultDescription
affinityobject{}Set Pod affinity rules
configstring"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.enabledboolfalseenables the use of a Coral device
coral.hostPathstring"/dev/bus/usb"path on the host to which to mount the Coral device
dnsConfigobject{}Optional pod-level dnsConfig (e.g. to tune ndots). See https://kubernetes.io/docs/concepts/services-networking/dns-pod-service/#pod-dns-config
envobject{}additional ENV variables to set. Prefix with FRIGATE_ to target Frigate configuration values
envFromSecretslist[]set environment variables from Secret(s)
extraInitContainerslist[]Define extra init containers
extraVolumeMountslist[]declare additional volume mounts
extraVolumeslist[]declare extra volumes to use for Frigate
fullnameOverridestring""Overrides the Full Name of resources
gpu.nvidia.enabledboolfalseEnables 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.runtimeClassNamestringnilOverrides the default runtimeClassName
httpRoute.annotationsobject{}Annotations to add to the HTTPRoute
httpRoute.enabledboolfalseExpose 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.hostnameslist[]Hostnames the route matches. Leave empty to match all hostnames on the parent Gateway listener(s)
httpRoute.labelsobject{}Additional labels to add to the HTTPRoute
httpRoute.matcheslist[{"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.parentRefslist[{"name":""}]References to the Gateway(s) this route attaches to
image.pullPolicystring"IfNotPresent"Docker image pull policy
image.repositorystring"ghcr.io/blakeblackshear/frigate"Docker registry/repository to pull the image from
image.tagstringnilOverrides the default tag (appVersion) used in Chart.yaml. See available tags at https://github.com/blakeblackshear/frigate/pkgs/container/frigate
imagePullSecretslist[]Docker image pull policy
ingress.annotationsobject{}annotations to configure your Ingress. See your Ingress Controller's Docs for more info.
ingress.enabledboolfalseEnables the use of an Ingress Controller to front the Service and can provide HTTPS. Mutually exclusive with httpRoute.enabled
ingress.hostslist[{"host":"chart.example.local","paths":[{"path":"/","portName":"http-auth"}]}]alternatively use http if anonymous auth is allowed
ingress.ingressClassNamestringnilingressClassName for using on clusters with multiple ingresses, default is null
ingress.tlslist[]list of TLS configurations
nameOverridestring""Overrides the name of resources
networkPolicy.allowSameNamespacebooltrueAllow incoming traffic from all pods in the release namespace
networkPolicy.enabledboolfalseCreate 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.ingresslist[]More NetworkPolicy ingress rules, added as-is, e.g. [{from: [{namespaceSelector: {matchLabels: {kubernetes.io/metadata.name: monitoring}}}], ports: [{port: 8123, protocol: TCP}]}]
nodeSelectorobject{}Node Selector configuration
persistence.config.accessModestring"ReadWriteOnce"access mode to use for the PVC
persistence.config.enabledboolfalseEnables persistence for the config directory
persistence.config.ephemeralWritableConfigYamlbooltrue
persistence.config.seedOnlyboolfalseWhen 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.sizestring"100Mi"size/capacity of the PVC
persistence.config.skipuninstallboolfalseDo not delete the pvc upon helm uninstall
persistence.data.accessModestring"ReadWriteOnce"
persistence.data.enabledboolfalse
persistence.data.sizestring"10Gi"
persistence.data.skipuninstallboolfalse
persistence.media.accessModestring"ReadWriteOnce"access mode to use for the PVC
persistence.media.enabledboolfalseEnables persistence for the media directory
persistence.media.sizestring"10Gi"size/capacity of the PVC
persistence.media.skipuninstallboolfalseDo not delete the pvc upon helm uninstall
podAnnotationsobject{}Set additional pod Annotations
podSecurityContextobject{}will override it for frigate container
priorityClassNamestring""Name of a PriorityClass to assign to the Pod. Leave empty for no priority (default scheduling)
probes.liveness.enabledbooltrue
probes.liveness.failureThresholdint5
probes.liveness.initialDelaySecondsint30
probes.liveness.timeoutSecondsint10
probes.readiness.enabledbooltrue
probes.readiness.failureThresholdint5
probes.readiness.initialDelaySecondsint30
probes.readiness.timeoutSecondsint10
probes.startup.enabledboolfalse
probes.startup.failureThresholdint30
probes.startup.periodSecondsint10
resourcesobject{}Set resource limits/requests for the Pod(s)
securityContextobject{}Set Frigate Container Security Context
service.annotationsobject{}
service.ipFamilieslist[]
service.ipFamilyPolicystring"SingleStack"
service.labelsobject{}
service.loadBalancerIPstringnilSet specific IP address for LoadBalancer. service.type must be set to LoadBalancer
service.portint5000Port the Service should communicate on
service.typestring"ClusterIP"Type of Service to use
shmSizestring"1Gi"amount of shared memory to use for caching
strategyTypestring"Recreate"upgrade strategy type (e.g. Recreate or RollingUpdate)
tmpfsobject{"enabled":true,"sizeLimit":"1Gi"}use memory for tmpfs (mounted to /tmp)
tolerationslist[]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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the chartfrigate is pinned at v7.12.1 in opentenant.yaml. Drag more apps from the marketplace onto a rack.
  3. 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