home-assistant
by Sironite
Home Assistant on Kubernetes with optional code-server addon and Authentik outpost
About this chart
home-assistant
Home Assistant on Kubernetes with optional code-server addon and Authentik outpost
This chart deploys Home Assistant as a StatefulSet with persistent
storage for /config. It ships several opt-in addons and integrations that are disabled by default —
enable only what your cluster already provides.
Usage
Helm repo (GitHub Pages):
helm repo add sironite https://sironite.github.io/helm-home-assistant
helm repo update
helm install home-assistant sironite/home-assistant \
--namespace home-assistant --create-namespace \
-f my-values.yaml
OCI (GHCR):
helm install home-assistant oci://ghcr.io/sironite/home-assistant \
--version 3.3.3 \
--namespace home-assistant --create-namespace \
-f my-values.yaml
Addons and integrations
code-server (addons.codeserver)
Runs VS Code in the browser as a sidecar container
alongside Home Assistant. Both containers share the /config volume, so you can edit
configuration.yaml, automations, and custom components from any browser without needing SSH or
kubectl exec.
Enable with:
addons:
codeserver:
enabled: true
Authentik outpost (addons.codeserver.authentikOutpost)
code-server has no meaningful built-in authentication — disabling the password (the default in this chart) leaves it open to anyone who can reach the URL. An Authentik outpost solves this.
An outpost is a lightweight reverse proxy sidecar deployed next to your app. All traffic destined for code-server hits the outpost first. The outpost calls back to your central Authentik server to check whether the user has an active, authorised session. If yes, the request is forwarded to code-server. If not, the user is redirected to the Authentik login page.
This means code-server gets SSO for free — any identity provider you have wired into Authentik (LDAP, OIDC, SAML, passkeys) works automatically, with full MFA support.
Prerequisites:
- Authentik installed in the cluster
- A Proxy Provider configured in Authentik pointing at code-server
- An Outpost created in Authentik and the outpost token stored in a secret
Token secret — choose one approach:
# Option A: existing Kubernetes Secret (key must be named `token`)
addons:
codeserver:
authentikOutpost:
enabled: true
existingSecret: "my-outpost-token-secret"
# Option B: pull token from an external store via ESO
addons:
codeserver:
authentikOutpost:
enabled: true
externalSecret:
enabled: true
secretStoreRef: onepassword-connect
remoteKey: authentik-outpost-codeserver # must have a `token` property
External Secrets (externalSecrets)
External Secrets Operator (ESO) syncs secrets from an external store
(1Password, HashiCorp Vault, AWS SSM, Azure Key Vault, …) into Kubernetes Secret resources that are
then mounted into the containers.
This chart uses ESO to inject two kinds of secrets into Home Assistant and code-server:
| Secret | Purpose |
|---|---|
secrets.yaml | Home Assistant secrets file — keeps passwords and tokens out of configuration.yaml |
| SSH private key | Lets code-server authenticate to GitHub/GitLab for git push/pull of your HA config |
Items with coderOnly: true are mounted only in the code-server container, not in Home Assistant.
externalSecrets:
enabled: true
items:
- name: homeassistant-secrets
secretStoreRef: my-cluster-secret-store
remoteKey: homeassistant-secrets
secretKey: secrets.yaml
defaultMode: 0444 # HA needs read access; LSIO init can't chown read-only mounts
- name: ha-ssh-key
secretStoreRef: my-cluster-secret-store
remoteKey: github-ssh-key
remoteProperty: private_key
secretKey: id_ed25519
coderOnly: true
mountPath: /mnt/ssh-key/id_ed25519
defaultMode: 0600
SSH known hosts (sshKnownHosts)
When code-server runs a git push or git pull, SSH must verify the remote server's host key.
In an interactive terminal this shows a prompt — "Are you sure you want to continue connecting?".
Inside a browser-based editor there is no way to answer that prompt, so the git command hangs or
fails.
Pre-loading known_hosts removes the prompt by telling SSH which host keys to trust upfront.
sshKnownHosts:
enabled: true
# Get the value with: ssh-keyscan github.com
content: "github.com ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIOMqqnkVzrm0SdG6UOoqKLsabgH5C9okWi0dh2l9GKJl"
Run ssh-keyscan <hostname> for each git host you use (GitHub, GitLab, Gitea, Forgejo, etc.) and
concatenate the lines.
Gateway API HTTPRoutes (httproutes)
Creates HTTPRoute resources for use with a Gateway API compatible
controller (Cilium, Envoy Gateway, nginx-gateway, Istio, …). Requires the Gateway API CRDs to be
installed in the cluster.
httproutes:
- enabled: true
name: ha-httproute
hostname: ha.example.com
path: /
gateway:
name: my-gateway
namespace: kube-system
sectionName: https-listener
backend:
name: home-assistant
port: 8123
Ingress (ingress)
Standard Kubernetes Ingress resource for clusters without Gateway API. Works with any ingress
controller (nginx, Traefik, HAProxy, …).
ingress:
enabled: true
className: nginx
hostname: ha.example.com
tls:
- hosts:
- ha.example.com
secretName: home-assistant-tls
An optional second Ingress for code-server is available via addons.codeserver.ingress:
addons:
codeserver:
ingress:
enabled: true
className: nginx
hostname: codeserver.example.com
Cilium NetworkPolicy (networkPolicy.cilium)
Optional CiliumNetworkPolicy that locks down pod traffic to only what Home Assistant actually needs.
Requires Cilium CNI.
networkPolicy:
cilium:
enabled: true
prometheusNamespace: monitoring # allow Prometheus scraping
mqttNamespace: emqx # allow MQTT broker egress
postgresNamespace: cnpg-system # allow PostgreSQL egress (HA recorder)
extraIngress: [] # append custom ingress rules
extraEgress: [] # append custom egress rules
Kubernetes NetworkPolicy (networkPolicy.kubernetes)
Standard NetworkPolicy for clusters without Cilium. Works with any CNI that supports NetworkPolicy
(Calico, Flannel, Weave, …). Controls ingress only; use extraEgress to add egress rules.
networkPolicy:
kubernetes:
enabled: true
prometheusNamespace: monitoring
extraEgress:
- to:
- namespaceSelector:
matchLabels:
kubernetes.io/metadata.name: my-db
ports:
- port: 5432
Both networkPolicy.cilium and networkPolicy.kubernetes share the same namespace fields and
extraIngress/extraEgress lists — enable one or the other, not both.
Prerequisites summary
| Feature | Cluster requirement |
|---|---|
externalSecrets.enabled | External Secrets Operator |
ingress.enabled | Any Kubernetes ingress controller |
httproutes | Gateway API CRDs |
networkPolicy.cilium.enabled | Cilium CNI |
networkPolicy.kubernetes.enabled | Any CNI with NetworkPolicy support |
addons.codeserver.authentikOutpost.enabled | Authentik |
hostNetwork: true | Namespace PSS privileged (set automatically by this chart) |
Values
Values
| Key | Type | Default | Description |
|---|---|---|---|
| addons | object | {"codeserver":{"authentikOutpost":{"authentikHost":"","authentikHostBrowser":"","enabled":false,"existingSecret":"","externalSecret":{"enabled":false,"remoteKey":"","secretStoreRef":""},"image":{"repository":"ghcr.io/goauthentik/proxy","tag":"2026.8.5"},"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"20m","memory":"64Mi"}}},"enabled":false,"env":[{"name":"TZ","value":"UTC"},{"name":"PUID","value":"1000"},{"name":"PGID","value":"1000"},{"name":"DEFAULT_WORKSPACE","value":"/config"},{"name":"PASSWORD","value":""}],"image":{"repository":"lscr.io/linuxserver/code-server","tag":""},"ingress":{"annotations":{},"className":"","enabled":false,"hostname":"","tls":[]},"resources":{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"128Mi"}},"service":{"port":12321,"type":"ClusterIP"}},"matterServer":{"args":[],"dataSubPath":"matter-server","enabled":false,"env":[{"name":"TZ","value":"UTC"}],"image":{"repository":"ghcr.io/matter-js/python-matter-server","tag":"8.1.2"},"port":5580,"resources":{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"128Mi"}},"securityContext":{}}} | Optional addons that run as sidecar containers alongside Home Assistant. |
| addons.codeserver | object | {"authentikOutpost":{"authentikHost":"","authentikHostBrowser":"","enabled":false,"existingSecret":"","externalSecret":{"enabled":false,"remoteKey":"","secretStoreRef":""},"image":{"repository":"ghcr.io/goauthentik/proxy","tag":"2026.8.5"},"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"20m","memory":"64Mi"}}},"enabled":false,"env":[{"name":"TZ","value":"UTC"},{"name":"PUID","value":"1000"},{"name":"PGID","value":"1000"},{"name":"DEFAULT_WORKSPACE","value":"/config"},{"name":"PASSWORD","value":""}],"image":{"repository":"lscr.io/linuxserver/code-server","tag":""},"ingress":{"annotations":{},"className":"","enabled":false,"hostname":"","tls":[]},"resources":{"limits":{"cpu":"500m","memory":"512Mi"},"requests":{"cpu":"50m","memory":"128Mi"}},"service":{"port":12321,"type":"ClusterIP"}} | VS Code in the browser (code-server), sharing the /config volume with Home Assistant. Gives you a full editor for configuration.yaml, automations, and custom components without needing shell access to the node. |
| addons.codeserver.authentikOutpost | object | {"authentikHost":"","authentikHostBrowser":"","enabled":false,"existingSecret":"","externalSecret":{"enabled":false,"remoteKey":"","secretStoreRef":""},"image":{"repository":"ghcr.io/goauthentik/proxy","tag":"2026.8.5"},"resources":{"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"20m","memory":"64Mi"}}} | Authentik proxy outpost for code-server. An outpost is a lightweight reverse proxy deployed next to your app that enforces Authentik authentication before forwarding traffic. It replaces the need for a built-in login screen — any user who hits code-server must first authenticate via your Authentik SSO. The outpost calls back to the Authentik server to validate sessions. Requires Authentik installed in the cluster and a Proxy Provider + Outpost configured for code-server. |
| addons.codeserver.authentikOutpost.authentikHost | string | "" | Cluster-internal URL of the Authentik server (used by the outpost to validate sessions). |
| addons.codeserver.authentikOutpost.authentikHostBrowser | string | "" | Public-facing Authentik URL (used for browser redirects to the login page). |
| addons.codeserver.authentikOutpost.enabled | bool | false | Enable the Authentik proxy outpost Deployment and Service. |
| addons.codeserver.authentikOutpost.existingSecret | string | "" | Name of an existing Kubernetes Secret containing the outpost token under key token. Mutually exclusive with externalSecret. Create this secret manually or via another tool. |
| addons.codeserver.authentikOutpost.externalSecret | object | {"enabled":false,"remoteKey":"","secretStoreRef":""} | Fetch the outpost token from an external secret store via ESO instead of an existing secret. |
| addons.codeserver.authentikOutpost.externalSecret.enabled | bool | false | Enable ExternalSecret rendering for the outpost token. |
| addons.codeserver.authentikOutpost.externalSecret.remoteKey | string | "" | Key in the secret store that holds the outpost token (must have a token property). |
| addons.codeserver.authentikOutpost.externalSecret.secretStoreRef | string | "" | ClusterSecretStore name. |
| addons.codeserver.authentikOutpost.image | object | {"repository":"ghcr.io/goauthentik/proxy","tag":"2026.8.5"} | Authentik proxy image. |
| addons.codeserver.authentikOutpost.resources | object | {"limits":{"cpu":"200m","memory":"256Mi"},"requests":{"cpu":"20m","memory":"64Mi"}} | Resource requests and limits for the outpost proxy container. |
| addons.codeserver.enabled | bool | false | Enable the code-server sidecar. |
| addons.codeserver.env | list | [{"name":"TZ","value":"UTC"},{"name":"PUID","value":"1000"},{"name":"PGID","value":"1000"},{"name":"DEFAULT_WORKSPACE","value":"/config"},{"name":"PASSWORD","value":""}] | Environment variables for code-server. Runs as the same PUID/PGID as Home Assistant so it has full read/write access to /config. |
| addons.codeserver.image | object | {"repository":"lscr.io/linuxserver/code-server","tag":""} | code-server container image (LSIO build). |
| addons.codeserver.image.tag | string | "" | Image tag. Defa |
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 v3.3.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