home-assistant

by pajikos

Helm chartv0.3.93App 2026.11.3Verified publisher

Automatically Updated Helm Chart for Home Assistant

About this chart

Helm chart for Home Assistant

Introduction

This chart bootstraps a Home Assistant deployment on a Kubernetes cluster using the Helm package manager.

It is updated automatically with each new release of Home Assistant, ensuring you always have access to the latest features and improvements.

Features

  • Automatic Updates: The chart is updated with each new release of Home Assistant.
  • Flexibility: Extensive configuration options to tailor Home Assistant to your needs.
  • Addons Support: Extend Home Assistant's functionality with supported addons, such as code-server.

Quick Start

To deploy Home Assistant using this Helm chart, follow these steps:

$ helm repo add pajikos http://pajikos.github.io/home-assistant-helm-chart/
$ helm repo update
$ helm install home-assistant pajikos/home-assistant

The chart is also published as an OCI artifact to GitHub Container Registry, so it can be installed without adding a repository:

$ helm install home-assistant oci://ghcr.io/pajikos/charts/home-assistant

Add --version <chart version> to either command to pin a specific release.

This will deploy Home Assistant with the default configuration. See the Configuration section for details on customizing the deployment.

Tip: List all releases using helm list

Uninstalling the Chart

To uninstall/delete the home-assistant deployment:

$ helm delete home-assistant

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Home Assistant chart and their default values.

Home Assistant Helm Chart

This document provides detailed configuration options for the Home Assistant Helm chart.

ParameterDescriptionDefault
namespaceOverrideOverride the namespace.Release.Namespace
replicaCountNumber of replicas for the deployment1
image.repositoryRepository for the Home Assistant imageghcr.io/home-assistant/home-assistant
image.pullPolicyImage pull policyIfNotPresent
image.tagOverrides the image tag (default is the chart appVersion)""
image.imagePullSecretsList of imagePullSecrets for private image repositories[]
nameOverrideOverride the default name of the Helm chart""
fullnameOverrideOverride the default full name of the Helm chart""
serviceAccount.createSpecifies whether a service account should be createdtrue
serviceAccount.annotationsAnnotations to add to the service account{}
serviceAccount.nameThe name of the service account to use""
commonLabelsLabels to add to all resources{}
podAnnotationsAnnotations to add to the pod{}
controller.typeType of controller to use: StatefulSet or DeploymentStatefulSet
controller.labelsLabels to add to the controller{}
controller.revisionHistoryLimitNumber of old ReplicaSets (Deployment) or ControllerRevisions (StatefulSet) to keep for rollbacks. Unset keeps the Kubernetes default of 10nil
statefulSetAnnotationsAnnotations to add to the StatefulSet{}
deploymentAnnotationsAnnotations to add to the Deployment{}
podSecurityContextPod security context settings{}
envEnvironment variables[]
envFromUse environment variables from ConfigMaps or Secrets[]
hostNetworkSpecifies if the containers should be started in hostNetwork mode.false
dnsPolicySpecifies the dnsPolicy for the pod.false
hostPort.enabledEnable 'hostPort' or notfalse
hostPort.portPort number8123
dnsConfigOverride the default dnsConfig and set your own nameservers or ndots, among other options{}
service.typeService type (ClusterIP, NodePort, LoadBalancer, or ExternalName)ClusterIP
service.nodePortSets a fixed NodePort (30000-32767). Only used when service.type is NodePort.nil
service.portService port8080
service.annotationsAnnotations to add to the service{}
serviceMonitor.namespaceNamespace for the ServiceMonitor; defaults to namespaceOverride or the Helm release namespace"" (Home Assistant namespace)
serviceMonitor.requiresAuthRequire authentication for the Home Assistant Prometheus endpoint; set to false to disable ittrue
ingress.enabledEnable ingress for Home Assistantfalse
ingress.externalEnable external ingress (cannot be true when ingress.enabled is true)false
additionalIngressesList of additional ingress configurations[]
httpRoute.enabledEnable Gateway API HTTPRoute for Home Assistantfalse
httpRoute.parentRefsParent Gateways the HTTPRoute attaches to[]
httpRoute.hostnamesHostnames matched by the HTTPRoute[]
httpRoute.matchesRoute match rules (defaults to a PathPrefix / match)[]
resourcesResource settings for the container{}
nodeSelectorNode selector settings for scheduling the pod on specific nodes{}
tolerationsTolerations settings for scheduling the pod based on node taints[]
affinityAffinity settings for controlling pod scheduling{}
priorityClassNamePriority class name for Home Assistant pods""
persistence.enabledEnables the creation of a Persistent Volume Claim (PVC) for Home Assistant.false
persistence.accessModeThe access mode of the PVC.ReadWriteOnce
persistence.sizeThe size of the PVC to create.5Gi
persistence.storageClassThe storage class to use for the PVC. If empty, the default storage class is used.""
persistence.existingVolumeThe name of an existing Persistent Volume to bind to when using StatefulSet. This bypasses dynamic provisioning.""
persistence.existingClaimThe name of an existing PVC to use when using Deployment.""
persistence.matchLabelsLabel selectors to apply when binding to an existing Persistent Volume.{}
persistence.matchExpressionsExpression selectors to apply when binding to an existing Persistent Volume.{}
persistence.annotationsAnnotations to add to the PVC.{}
additionalVolumesAdditional volumes to be mounted in the home assistant container[]
additionalMountsAdditional volume mounts to be mounted in the home assistant container[]
initContainersList of initialization containers[]
configuration.enabledEnable or disable the configuration setup for Home Assistantfalse
configuration.forceInitForce init will merge the current configuration file with the default configuration on every startfalse
configuration.trusted_proxiesList of trusted proxies in CIDR notation["10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16", "127.0.0.0/8"]
configuration.templateConfigTemplate for the configuration.yaml fileSee Advanced Configuration
configuration.initScriptInit script for Home Assistant initializationSee values.yaml for the complete configuration options
configuration.initContainerConfiguration for the init containerSee values.yaml for the complete configuration options
addons.codeserver.enabledEnable or disable the code-server addonfalse
addons.codeserver.resourcesResource settings for the code-server container{}
addons.codeserver.image.repositoryRepository for the code-server imageghcr.io/coder/code-server
addons.codeserver.image.pullPolicyImage pull policy for the code-server imageIfNotPresent
addons.codeserver.image.tagTag for the code-server imagelatest released version, automatically updated
addons.codeserver.auth.enabledEnable or disable authentication for the code-server addonfalse
addons.codeserver.auth.existingSecretExisting secret containing the password (key: password)""
addons.codeserver.auth.passwordPassword for code-server (only used if existingSecret is not set)""
addons.codeserver.service.typeService type for the code-server addonClusterIP
addons.codeserver.service.portService port for the code-server addon12321
addons.codeserver.ingress.enabledEnable or disable the ingress for the code-server addonfalse
addons.codeserver.ingress.hostsHosts for the code-server addon[]
addons.codeserver.ingress.tlsTLS settings for the code-server addon[]
addons.codeserver.ingress.annotationsAnnotations for the code-server addon{}

Controller Type

This chart supports two types of controllers for deploying Home Assistant:

  1. StatefulSet (default): Recommended for production use, especially when persistence is enabled. StatefulSets provide stable network identities and persistent storage that survives pod rescheduling.

  2. Deployment: Simpler controller type that might be preferred in some scenarios. When using a Deployment with persistence enabled, a separate PVC is created instead of using volumeClaimTemplates.

To specify the controller type, set the controller.type value:

controller:
  type: StatefulSet  # or Deployment

Every change to the pod template, such as an image bump, creates a new revision of the controller (a ReplicaSet for a Deployment, a ControllerRevision for a StatefulSet). Kubernetes keeps the last 10 by default. If you run the chart through a GitOps tool such as ArgoCD, these old revisions show up in the application tree; set controller.revisionHistoryLimit to keep fewer of them:

controller:
  revisionHistoryLimit: 3

Persistence

The default configuration of this chart uses an emptyDir volume for persistence, which means that data is lost when the pod is removed. To enable persistent storage that survives pod restarts and redeployments, you can configure the chart to use a Persistent Volume Claim (PVC).

Enabling Persistence

To enable persistence, set persistence.enabled to true. You can also specify the desired accessMode and size for the PVC. By default, the accessMode is set to ReadWriteOnce, and there is no default storage class (storageClass: ""), meaning the cluster's default storage class will be used.

persistence:
  enabled: true
  accessMode: ReadWriteOnce
  size: 5Gi
  storageClass: ""

Using an Existing Volume or PVC

Depending on the controller type you're using, you can either bind to an existing Persistent Volume (PV) or use an existing Persistent Volume Claim (PVC):

With StatefulSet (default)

If you already have a Persistent Volume (PV) that you wish to use with a StatefulSet, you can specify the name of this existing volume in the persistence.existingVolume field. This will direct the chart to use the specified PV, bypassing dynamic volume provisioning.

controller:
  type: StatefulSet
persistence:
  enabled: true
  existingVolume: "my-existing-volume"

With Deployment

If you're using a Deployment and already have a PVC that you wish to use, you can specify the name of this existing claim in the persistence.existingClaim field:

controller:
  type: Deployment
persistence:
  enabled: true
  existingClaim: "my-existing-pvc"

Alternatively, if you want to bind to a specific PV with a Deployment, you can create a new PVC that binds to the PV by setting persistence.existingVolume:

controller:
  type: Deployment
persistence:
  enabled: true
  existingVolume: "my-existing-volume"

When using an existing volume or claim, ensure that the accessMode and size specified in the chart values match the capabilities and capacity of the existing PV/PVC.

Selectors

You can further refine the selection of an existing PV using matchLabels or matchExpressions under the persistence section. These selectors will be used to match the existing PVs based on their labels.

persistence:
  enabled: true
  matchLabels:
    type: fast-ssd
  matchExpressions:
    - key: "failure-domain.beta.kubernetes.io/zone"
      operator: "In"
      values: ["us-west-1a"]

PVC Annotations

You can add annotations to the PVC by specifying them in the persistence.annotations field. This is useful for backup solutions like k8up that use annotations to identify resources for backup.

persistence:
  enabled: true
  annotations:
    k8up.io/backup: "true"
    another-annotation: "value"

Note: When specifying an existingVolume, ensure that the PV is not already bound to another PVC, as a PV can only be bound to a single PVC at a time.

Ingress

The chart provides two mutually exclusive ways to configure ingress:

  1. ingress.enabled: Traditional Kubernetes ingress configuration
  2. ingress.external: For scenarios where

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.

  1. Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
  2. Place the charthome-assistant is pinned at v0.3.93 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