home-assistant
by janip81
An unofficial Helm chart to deploy Home Assistant
About this chart
home-assistant
An unofficial Helm chart to deploy Home Assistant
Homepage: https://github.com/janip81/helm-charts/tree/main/charts/home-assistant
Maintainers
| Name | Url | |
|---|---|---|
| Jani Pesonen | [email protected] | https://github.com/janip81 |
Source Code
Overview
Helm-chart for deploying Home Assistant
Adding this helm repository
To add the helm repository, run the following commands:
helm repo add janip81 https://janip81.github.io/helm-charts/
helm search repo home-assistant
values.yaml files for the charts can be found in the charts/[chartname] directories.
TL;DR
helm repo add janip81 https://janip81.github.io/helm-charts/
helm install my-cluster-name janip81/home-assistant -f YOU-OWN-VALUES.yaml
Helm must be installed to use the charts. Please refer to Helm's documentation to get started.
If you had already added this repo earlier, run helm repo update to retrieve
the latest versions of the packages. You can then run helm search repo <alias> to see the charts.
To install the chart:
helm install my-<chart-name> <alias>/<chart-name>
To uninstall the chart:
helm delete my-<chart-name>
Prerequisites
- Kubernetes
- Helm 3.1.0
- PV provisioner support in the underlying infrastructure (for persistent storage)
- LoadBalancer support or an Ingress controller
Values
| Key | Type | Default | Description |
|---|---|---|---|
| addons.codeserver.args[0] | string | "--auth" | |
| addons.codeserver.args[1] | string | "none" | |
| addons.codeserver.args[2] | string | "--user-data-dir" | |
| addons.codeserver.args[3] | string | "/config/.vscode" | |
| addons.codeserver.args[4] | string | "--extensions-dir" | |
| addons.codeserver.args[5] | string | "/config/.vscode" | |
| addons.codeserver.args[6] | string | "--port" | |
| addons.codeserver.args[7] | string | "12321" | |
| addons.codeserver.args[8] | string | "/config" | |
| addons.codeserver.enabled | bool | true | |
| addons.codeserver.httpRoute.enabled | bool | true | |
| addons.codeserver.httpRoute.gateway | string | "internal-shared" | |
| addons.codeserver.httpRoute.hostname | string | "vshass.domain.com" | |
| addons.codeserver.image.imagePullPolicy | string | "IfNotPresent" | |
| addons.codeserver.image.repository | string | "codercom/code-server" | |
| addons.codeserver.image.tag | string | "4.7.1" | |
| addons.codeserver.ingress.annotations."kubernetes.io/ingress.class" | string | "haproxy" | |
| addons.codeserver.ingress.enabled | bool | false | |
| addons.codeserver.ingress.ingressClassName | string | "nginx-example" | |
| addons.codeserver.ingress.rules[0].host | string | "hass.domain.com" | |
| addons.codeserver.ingress.rules[0].http.paths[0].backend.service.name | string | "test" | |
| addons.codeserver.ingress.rules[0].http.paths[0].backend.service.port.number | int | 12321 | |
| addons.codeserver.ingress.rules[0].http.paths[0].path | string | "/" | |
| addons.codeserver.ingress.rules[0].http.paths[0].pathType | string | "Prefix" | |
| addons.codeserver.ingress.tls | list | [] | |
| addons.codeserver.resources | object | {} | |
| addons.codeserver.securityContext.capabilities.drop[0] | string | "all" | |
| addons.codeserver.securityContext.readOnlyRootFilesystem | bool | true | |
| addons.codeserver.service.port | int | 12321 | |
| addons.codeserver.service.type | string | "ClusterIP" | |
| addons.codeserver.volumeMounts[0].mountPath | string | "/config" | |
| addons.codeserver.volumeMounts[0].name | string | "config" | |
| addons.codeserver.workingDir | string | "/config" | |
| httpRoute.enabled | bool | false | |
| httpRoute.externalGateway | string | "" | |
| httpRoute.hostname | string | "hass.domain.com" | |
| httpRoute.internalGateway | string | "" | |
| image.imagePullPolicy | string | "IfNotPresent" | |
| image.repository | string | "ghcr.io/home-assistant/home-assistant" | |
| image.tag | string | "2023.10.1" | |
| ingress.annotations."haproxy.org/forwarded-for" | string | "true" | |
| ingress.annotations."kubernetes.io/ingress.class" | string | "haproxy" | |
| ingress.annotations."nginx.ingress.kubernetes.io/rewrite-target" | string | "/" | |
| ingress.enabled | bool | false | |
| ingress.hosts.backend.service.name | string | "test" | |
| ingress.hosts.backend.service.portnumber | int | 8123 | |
| ingress.hosts.name | string | "hass.domain.com" | |
| ingress.hosts.path | string | "/" | |
| ingress.hosts.pathType | string | "Prefix" | |
| ingress.ingressClassName | string | "nginx-example" | |
| ingress.tls | list | [] | |
| metrics.serviceMonitor.bearerTokenFile | string | nil | |
| metrics.serviceMonitor.bearerTokenSecret.key | string | "azt2FBZ5GBshXpYYZ7_Vku6qSwhZeRP8iyQWBNfWaIU" | |
| metrics.serviceMonitor.bearerTokenSecret.name | string | "prometheus" | |
| metrics.serviceMonitor.enabled | bool | true | |
| metrics.serviceMonitor.interval | string | "1m" | |
| metrics.serviceMonitor.labels | object | {} | |
| metrics.serviceMonitor.scrapeTimeout | string | nil | |
| persistence.config.accessMode | string | "ReadWriteOnce" | |
| persistence.config.size | string | "10Gi" | |
| persistence.config.storageClass | string | "storageclass" | |
| persistence.enabled | bool | true | |
| podSecurityContext | string | nil | |
| probes.liveness.failureThreshold | int | 3 | |
| probes.liveness.periodSeconds | int | 10 | |
| probes.liveness.tcpSocket.port | int | 8123 | |
| probes.liveness.timeoutSeconds | int | 1 | |
| probes.readiness.failureThreshold | int | 3 | |
| probes.readiness.periodSeconds | int | 10 | |
| probes.readiness.tcpSocket.port | int | 8123 | |
| probes.readiness.timeoutSeconds | int | 1 | |
| probes.startup.failureThreshold | int | 30 | |
| probes.startup.periodSeconds | int | 5 | |
| probes.startup.tcpSocket.port | int | 8123 | |
| probes.startup.timeoutSeconds | int | 1 | |
| resources.limits.cpu | string | "500m" | |
| resources.limits.memory | string | "1024Mi" | |
| resources.requests.cpu | string | "20m" | |
| resources.requests.memory | string | "512Mi" | |
| securityContext.capabilities | string | nil | |
| securityContext.readOnlyRootFilesystem | bool | false | |
| service.port | int | 8123 | |
| service.type | string | "ClusterIP" |
Autogenerated from chart metadata using helm-docs v1.14.2
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 v0.1.4 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