homebridge
by lbenicio
Homebridge with managed or existing persistent storage, including NFS and local recovery volumes
About this chart
homebridge
HomeKit support for the impatient — bring HomeKit to non-HomeKit smart home devices.
TL;DR
helm repo add lbenicio-community https://helm.lbenicio.dev/
helm install my-release lbenicio-community/homebridge --version 0.1.20
Introduction
This chart deploys Homebridge, a lightweight Node.js server that emulates the iOS HomeKit API, allowing you to control smart home devices that do not natively support HomeKit. It supports hundreds of plugins for devices like cameras, lights, locks, thermostats, and more. The chart includes options for host networking (required for mDNS/Bonjour discovery), Bluetooth device passthrough, and persistent storage for your Homebridge configuration.
Prerequisites
- Kubernetes 1.19+
- Helm 3.x+
- A Kubernetes node with the necessary capabilities (hostNetwork, privileged mode) if using Bluetooth or mDNS discovery
Installing the Chart
helm install my-release lbenicio-community/homebridge --version 0.1.20 --namespace default \
--set persistence.enabled=true \
--set persistence.storageClass=local-storage \
--set persistence.localPath=/var/local/k8s/homebridge
Parameters
| Key | Type | Default | Description |
|---|---|---|---|
image.repository | string | homebridge/homebridge | Container image repository |
image.tag | string | "" | Image tag (defaults to beta-2026-11-24) |
image.pullPolicy | string | IfNotPresent | Image pull policy |
replicaCount | int | 1 | Number of replicas |
hostNetwork | bool | false | Enable hostNetwork for mDNS/Bonjour discovery |
automountServiceAccountToken | bool | true | Mount a Kubernetes API token into Pod containers |
bluetooth.enabled | bool | false | Enable Bluetooth hostPath volume mount |
bluetooth.hostPath | string | /sys/class/bluetooth/hci0 | Host path for Bluetooth device |
service.type | string | ClusterIP | Service type |
service.httpPort | int | 8581 | HTTP port for the web UI |
service.ports | list | (4 ports) | Service ports (http, bonjour, alexa, controller) |
extraContainers | list | [] | Additional containers in the Homebridge Pod |
extraVolumes | list | [] | Additional Pod volumes available to Homebridge and sidecars |
extraVolumeMounts | list | [] | Additional mounts for the Homebridge container |
terminationGracePeriodSeconds | int | 30 | Pod shutdown grace period |
ingress.enabled | bool | false | Enable ingress for the web UI |
ingress.className | string | "" | Ingress class name |
ingress.hosts | list | [{"host":"homebridge.local","paths":[{"path":"/","pathType":"Prefix"}]}] | Ingress host rules |
ingress.tls | list | [] | Ingress TLS configuration |
persistence.enabled | bool | false | Enable persistent storage or a chart-managed PVC |
persistence.existingClaim | string | "" | Mount an existing PVC, including NFS-backed claims |
persistence.claimName | string | "" | Name a chart-managed PVC instead of using the default <release>-data |
persistence.storageClass | string | local-storage | Storage class name |
persistence.localPV.enabled | bool | false | Create a static local PV for a chart-managed PVC |
persistence.retainOnUninstall | bool | false | Keep the chart-managed PVC when uninstalling the release |
persistence.recoveryVolume.enabled | bool | false | Manage a separate retained local recovery PV/PVC; it is not mounted by Homebridge |
persistence.staticNfsPV.enabled | bool | false | Manage a supplied CSI PV and bind the chart PVC to it |
persistence.staticNfsPV.name | string | "" | Existing CSI PV name |
persistence.staticNfsPV.volumeHandle | string | "" | Existing CSI volume handle |
persistence.staticNfsPV.volumeAttributes | object | {} | CSI volume attributes for the existing PV |
persistence.staticNfsPV.claimRef | object | {} | Pre-bind the retained CSI PV to a PVC by name and namespace; uid replaces a stale reference |
persistence.size | string | 10Gi | Storage size |
persistence.accessMode | string | ReadWriteOnce | Access mode |
persistence.localPath | string | /var/local/k8s/homebridge | Local path on the host |
persistence.nodeAffinityHost | string | "" | Node affinity hostname for local PV |
containerSecurityContext.runAsUser | int | 1000 | User ID to run the container |
resources.requests.cpu | string | 100m | CPU request |
resources.requests.memory | string | 128Mi | Memory request |
resources.limits.cpu | string | 500m | CPU limit |
resources.limits.memory | string | 256Mi | Memory limit |
autoscaling.enabled | bool | false | Enable HPA |
keel.enabled | bool | false | Enable Keel auto-update annotations |
Configuration
Persistence
Enable persistent storage to retain your Homebridge configuration, plugins, and accessories across restarts:
persistence:
enabled: true
storageClass: local-storage
size: 10Gi
accessMode: ReadWriteOnce
localPath: /var/local/k8s/homebridge
nodeAffinityHost: node01
To use an existing PVC instead of creating a new one:
persistence:
enabled: true
existingClaim: "my-existing-homebridge-pvc"
For a chart-managed NFS claim with a stable name, set claimName,
storageClass: ntfs-storage, and leave existingClaim empty. The chart creates
the PVC and mounts it directly. retainOnUninstall: true keeps the claim if
the release is removed. existingClaim remains available when another
controller owns the claim.
For a retained pre-existing CSI volume, configure staticNfsPV with the
existing PV name, volume handle, volume attributes, and mount options. The
chart manages that PV without changing its backing path and binds the named PVC
to it.
For a static local volume, set localPV.enabled: true and configure
localPath and nodeAffinityHost. A local PV is created only when no
existingClaim is supplied.
Set persistence.recoveryVolume.enabled to manage a separate retained local
PV/PVC for a recovery copy. The recovery claim is not mounted in the Homebridge
pod.
Sidecar Containers
Use extraContainers for tightly coupled local helpers, such as a camera decoder. The sidecar shares the Pod network namespace with Homebridge, so loopback endpoints work between containers. Define its volumes with extraVolumes; existing hostNetwork and node scheduling settings apply to the whole Pod. Use extraInitContainers when shared volumes need preparation before the containers start.
Host Network & Bluetooth
Homebridge uses mDNS (Bonjour) for HomeKit device discovery, which requires hostNetwork when running in a cluster. Enable it along with Bluetooth passthrough if you have BLE accessories:
hostNetwork: true
bluetooth:
enabled: true
hostPath: /sys/class/bluetooth/hci0
Security note: Host networking and privileged mode expand the container's access to the node. Only enable these on trusted workloads and dedicated nodes.
Ingress
Expose the Homebridge web UI through an ingress controller:
ingress:
enabled: true
className: traefik
annotations:
cert-manager.io/cluster-issuer: ca-issuer
hosts:
- host: homebridge.example.com
paths:
- path: /
pathType: Prefix
tls:
- secretName: homebridge-cert
hosts:
- homebridge.example.com
Environment Variables
Customize the container environment, e.g., timezone or disabling Avahi:
env:
TZ: "America/Sao_Paulo"
ENABLE_AVAHI: "0"
License
This chart is licensed under GPLv3.
Made with ❤️ by lbenicio
Deploy homebridge with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has homebridge 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 charthomebridge is pinned at v0.1.22 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