home-assistant
by alekc
Home Assistant on Kubernetes with automatic upstream version tracking, LAN-discovery host networking, and declarative /config management.
About this chart
Home Assistant
Home Assistant on Kubernetes with automatic upstream version tracking, LAN-discovery host networking, and declarative /config management.
Home Assistant is a self-hosted home-automation hub: it integrates smart-home devices
(Zigbee, Z-Wave, Matter, Wi-Fi, Bluetooth) from hundreds of brands behind a single
local-first dashboard, without sending device data to a cloud vendor. This chart runs the
official ghcr.io/home-assistant/home-assistant container on Kubernetes, with host
networking for LAN device discovery (mDNS/SSDP), a persistent /config volume, and
optional declarative /config files via a ConfigMap.
This chart tracks upstream automatically: a bot bumps appVersion (and the chart's own
version, following semver) every time Home Assistant ships a new release, so appVersion
here always matches the latest published Home Assistant version, not a stale snapshot.
Quick start
From the classic chart repository:
$ helm repo add alekc-charts https://charts.alekc.dev/
$ helm install my-release alekc-charts/home-assistant -f values-example.yaml
Or directly from the OCI registry, no helm repo add needed:
$ helm install my-release oci://charts.alekc.dev/home-assistant --version <x.y.z> -f values-example.yaml
A minimal working values.yaml, host networking for LAN device discovery, a persistent
/config volume, and an Ingress in front of the built-in HTTP server:
hostNetwork: true
dnsPolicy: ClusterFirstWithHostNet
persistence:
enabled: true
storageClass: "your-storage-class"
size: 5Gi
ingress:
enabled: true
className: nginx
hosts:
- host: hass.example.com
paths:
- path: /
pathType: ImplementationSpecific
tls:
- hosts:
- hass.example.com
secretName: hass-tls
Verifying the signature
Every stable release is GPG-signed:
$ curl -sO https://charts.alekc.dev/pubring.gpg
$ helm pull oci://charts.alekc.dev/home-assistant --version <x.y.z> --verify --keyring pubring.gpg
Signed by: <maintainer name and email>
Using Key With Fingerprint: 290844476DDC5961D0B31EFD772FB27A86DAFCE7
Chart Hash Verified: sha256:...
Needs a reasonably current Helm. Helm 3.19.4 has a confirmed bug where pull --verify
against an oci:// reference crashes on a file-handling error, even with the correct key and
a valid signature (reproduced directly: a wrong key fails cleanly with signature made by unknown entity, the genuinely correct key crashed instead of succeeding). Fixed by Helm
3.21.4 and confirmed working on v4.2.4, same command, same chart, verifies cleanly on both.
If you hit this on an older 3.x, upgrade Helm rather than work around it.
Gotchas
configuration.mountfiles never hot-reload. Each entry inconfiguration.filesis mounted individually withsubPath, which is how the rest of/configstays writable on the PVC for the UI. ButsubPathmounts never pick up ConfigMap content changes on their own, the chart works around this by rolling the Deployment on every content change (checksum/configurationpod annotation), so a values-only edit still triggers a redeploy even though nothing else changed.configuration.reloadable.fileschange without a restart, but need a reload. They are mounted as one directory (default/config/git, so!include git/<name>), which the kubelet refreshes in place, typically within a minute or two, and they are not part of the checksum. Home Assistant does not watch them: callhomeassistant.reload_all(or a domain reload) afterwards, for example from an automation. If an automation triggers the reload, keep it inconfiguration.yamlor another non-reloadable file: when its own config changes,automation.reloadremoves it mid-run, the reload is cancelled half-way, and Home Assistant refuses to re-add it until a restart. Only put files there whose integrations can reload (automations, templates, scripts, REST, MQTT YAML);sqland everything inconfiguration.yamlitself still need a restart, so keep those inconfiguration.files. Adding a new file also means a new!include, which rolls the pod.- Files under
configuration.mountare read-only. Home Assistant's UI editors (automations, scenes,configuration.yamlinclude files) cannot write back to anything mounted this way. Only put files here that you intend to manage exclusively through git, everything else should stay on the PVC and editable from the UI. additionalManifestsis a chart-level escape hatch, not the same key you may already use one layer up. Each entry renders as a raw manifest through this Helm release itself (templated withtpl, so it can reference.Release.Namespaceand friends), there's no ordering, dependency, or lifecycle management beyond "apply alongside everything else in this release". If you deploy this chart viaterraform-home-cluster's app-of-apps orchestrator, its ownadditionalManifests:key (a sibling ofhelmValues:on the app block) is a different feature at a different layer, rendered directly by the orchestrator and bypassing Helm entirely. Both exist for the same reason (attach one extra manifest without forking the chart), pick whichever layer you're already working in, don't assume setting one also sets the other.hostNetwork: truebypasses the Kubernetes Service network entirely. The container binds directly to the node's network namespace, this is what makes mDNS/SSDP device discovery work, but it also means the pod can reach (and be reached by) anything on the node's LAN, there is no NetworkPolicy isolation for a host-networked pod. Setting it tofalsegets you normal cluster networking back, but breaks discovery for devices that rely on LAN broadcast (Hue bridges, Chromecast, some Zigbee bridges); most Zigbee/Z-Wave setups that talk to a coordinator over TCP (see thezigbee2mqttchart) don't need it.networkPolicy.enabledrefuses to render alongsidehostNetwork: true. A host-networked pod bypasses the CNI's pod network on most implementations, so a NetworkPolicy would silently do nothing while looking like real isolation. SethostNetwork: falsefirst if you want the egress allowlist (DNS plus the named MQTT/ Postgres namespaces).- No K8s API access is needed or granted.
serviceAccount.automountServiceAccountTokendefaults tofalse, Home Assistant never calls the Kubernetes API. Leave it off unless a custom integration you install specifically needs cluster introspection. deploymentStrategy: Recreateis intentional, not a default left unconfigured. The PVC isReadWriteOnceand Home Assistant's SQLite-backed default recorder does not tolerate two pods writing/configat once,RollingUpdatewould deadlock on the second pod waiting for a volume already attached to the first.- Probes hit
/manifest.json, not an authenticated health endpoint. It is the earliest path the frontend serves without an API token, so it turns healthy as soon as the web server is up. It does not confirm the recorder, or any integration, finished loading, a green pod does not always mean automations are already running. gateway.enabledattaches to an existing Gateway, it never creates one. TheGatewayobject (and the Gateway API CRDs themselves) are cluster-level infrastructure managed outside this chart. Setgateway.name(andgateway.namespaceif it isn't in this release's namespace) to an already-provisioned Gateway; the chart refuses to render without a name rather than silently produce an HTTPRoute with nothing to attach to.metrics.serviceMonitor.enabledneeds Home Assistant's own Prometheus integration configured first, the ServiceMonitor only tells Prometheus where to scrape, it doesn't turn the endpoint on. Addprometheus:toconfiguration.files'configuration.yaml(see the upstream Prometheus integration docs), generate a long-lived access token from a user profile, and put it in an existing Secret referenced bymetrics.serviceMonitor.bearerTokenSecret.name. The chart refuses to render without that secret name, the endpoint always requires a bearer token.
Upgrade notes
- 2.10.0:
values.schema.jsonis now enforced (helm lint/helm templatereject unknown or mistyped values). Existingvalues.yamloverrides that only used documented keys need no changes. Theingresstemplate now rendersnetworking.k8s.io/v1unconditionally, if you are on a Kubernetes cluster older than 1.19 (unsupported upstream since 2020), pin an earlier chart version instead of upgrading.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| additionalManifests | object | {} | Additional raw Kubernetes manifests to render alongside the chart's own resources. Supports any valid Kubernetes object; values are templated with tpl, so a manifest can reference .Release.Namespace and friends. Mirrors the common Helm library's own additionalManifests block for charts (like this one) that don't depend on common. Example: additionalManifests: my-configmap: apiVersion: v1 kind: ConfigMap metadata: name: my-configmap data: key: value |
| affinity | object | {} | Affinity rules for pod scheduling. |
| annotations | object | {} | Annotations added to the Deployment's own metadata, distinct from commonAnnotations (every resource) and podAnnotations (the pod template). |
| commonAnnotations | object | {} | Annotations added to every resource this chart renders, merged with any resource-specific annotations (e.g. ingress.annotations). |
| commonLabels | object | {} | Labels added to every resource this chart renders. |
| configuration.annotations | object | {} | Annotations merged onto the rendered ConfigMap. |
| configuration.files | object | {} | Map of filename to file contents, e.g. configuration.yaml. Keys must be plain filenames (no directories) because they become ConfigMap keys. Changing any content rolls the pod, since subPath mounts never pick up ConfigMap updates on their own. |
| configuration.mount | bool | false | Mount the files below over /config, rendered from a ConfigMap. Each file is mounted individually with subPath, so the rest of /config stays writable on the PVC. Mounted files are read-only: Home Assistant cannot edit them from the UI, so only use this for files you manage declaratively. |
| configuration.reloadable.files | object | {} | Filename to contents, mounted as one read-only directory at mountPath (no subPath). The kubelet updates it in place and it is not in the pod checksum, so edits do not roll the pod: reload in Home Assistant instead, e.g. homeassistant.reload_all. |
| configuration.reloadable.mountPath | string | "/config/git" | Directory for reloadable.files; reference them as !include git/<name> from configuration.yaml. Must not be /config. |
| deploymentStrategy.type | string | "Recreate" | Deployment strategy. Recreate is required, see Gotchas. |
| dnsPolicy | string | "ClusterFirstWithHostNet" | Pod DNS policy. Use ClusterFirstWithHostNet when hostNetwork is true. |
| environment | object | {} | Environment variables to inject into the home-assistant container. Each entry's key becomes the env var name. The value can be either: - a scalar (string/number/bool), rendered as value: "..." - a map, rendered verbatim (e.g. valueFrom, valueFromExpr, etc.) |
| extraContainers | list | [] | Extra sidecar containers appended to the pod spec, templated with tpl so they can reference .Release.Namespace and friends. |
| fullnameOverride | string | "" | Overrides the full generated resource name. |
| gateway.annotations | object | {} | Annotations merged onto the HTTPRoute resource. |
| gateway.enabled | bool | false | Renders an HTTPRoute attached to an existing Gateway, instead of (or alongside) Ingress. Requires the Gateway API CRDs and a Gateway already provisioned elsewhere, this chart never creates the Gateway itself. |
| gateway.hostnames | list | ["hass.example.com"] | Hostnames this HTTPRoute matches, standard Gateway API shape. |
| gateway.name | string | "" | Name of the existing Gateway to attach to. |
| gateway.namespace | string | "" | Namespace of the existing Gateway. Defaults to this release's namespace when empty. |
| gateway.rules | list | [{"matches":[{"path":{"type":"PathPrefix","value":"/"}}]}] | Route match rules. Only matches is templated per rule, the backend is always this chart's own Service, standard Gateway API HTTPRoute matches shape. |
| gateway.sectionName | string | "" | Optional listener sectionName on the Gateway to attach to. |
| hostNetwork | bool | true | Enables host networking so Home Assistant can discover LAN devices (mDNS/SSDP) automatically. If set to false, you likely also want to change dnsPolicy below. |
| image.pullPolicy | string | "IfNotPresent" | Image pull policy. |
| image.repository | string | "ghcr.io/home-assistant/home-assistant" | Container image repository. |
| image.tag | string | "" | Overrides the image tag whose default is the chart appVersion. |
| imagePullSecrets | list | [] | Image pull secrets for a private registry. |
| ingress.annotations | object | {} | Annotations merged onto the Ingress resource. |
| ingress.className | string | "" | IngressClass name (e.g. nginx, traefik). |
| ingress.enabled | bool | false | Enables the Ingress res |
Deploy home-assistant with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has home-assistant 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 charthome-assistant is pinned at v2.14.3 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