esphome

by alexmorbo

Helm chartv1.0.0App 2024.12.2MITVerified publisher

Esphome helm chart for Kubernetes

About this chart

esphome

Esphome helm chart for Kubernetes

Homepage: https://github.com/alexmorbo/helm-charts

Maintainers

NameEmailUrl
AlexMorbo[email protected]

Source Code

Requirements

Kubernetes: >=1.23.0-0

Install

helm install esphome oci://ghcr.io/alexmorbo/helm-charts/esphome

Values

KeyTypeDefaultDescription
affinityobject{}https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node
envobject{}https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container
extraEnvlist[]https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container
extraEnvFromlist[]https://kubernetes.io/docs/tasks/inject-data-application/define-environment-variable-container
extraInitContainerslist[]https://kubernetes.io/docs/concepts/workloads/pods/init-containers
extraVolumeMountslist[]https://kubernetes.io/docs/concepts/storage/volumes
extraVolumeslist[]https://kubernetes.io/docs/concepts/storage/volumes
fullnameOverridestring""If this is set, release name will be used as the chart name
imageobject{"pullPolicy":"IfNotPresent","registry":"docker.io","repository":"esphome/esphome","sha":"","tag":""}Image
image.tagstring""Overrides the image tag whose default is the chart appVersion.
imagePullSecretslist[]https://kubernetes.io/docs/concepts/containers/images/#specifying-imagepullsecrets-on-a-pod
ingressobject{"annotations":{},"enabled":false,"hosts":[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}],"ingressClassName":"","tls":[]}https://kubernetes.io/docs/concepts/services-networking/ingress
ingress.annotationsobject{}Annotations
ingress.enabledboolfalseIf true, an ingress will be created
ingress.hostslist[{"host":"chart-example.local","paths":[{"path":"/","pathType":"ImplementationSpecific"}]}]Hosts
ingress.ingressClassNamestring""Ingress class
ingress.tlslist[]TLS
livenessProbeobject{}https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
nameOverridestring""If this is set, release name will be used as the chart name
nodeSelectorobject{}https://kubernetes.io/docs/concepts/scheduling-eviction/assign-pod-node
persistenceobject{"config":{"accessModes":["ReadWriteOnce"],"annotations":{},"enabled":true,"name":"","size":"5Gi","storageClass":"","volumeName":""}}https://kubernetes.io/docs/concepts/storage/persistent-volumes
persistence.config.accessModeslist["ReadWriteOnce"]Access modes of persistent disk
persistence.config.annotationsobject{}Annotations for PVCs
persistence.config.enabledbooltrueSpecifies whether a persistent volume should be created
persistence.config.namestring""PVC name
persistence.config.sizestring"5Gi"Size of persistent disk
persistence.config.storageClassstring""Name of the storage class
persistence.config.volumeNamestring""Name of the permanent volume to reference in the claim. Can be used to bind to existing volumes.
podAnnotationsobject{}https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations
podLabelsobject{}https://kubernetes.io/docs/concepts/overview/working-with-objects/labels
podSecurityContextobject{"fsGroup":1000,"fsGroupChangePolicy":"OnRootMismatch"}https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
readinessProbeobject{}https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle
replicaCountint1https://kubernetes.io/docs/concepts/workloads/controllers/replicationcontroller/
resourcesobject{}https://kubernetes.io/docs/concepts/configuration/manage-resources-containers
securityContextobject{"allowPrivilegeEscalation":false,"capabilities":{"drop":["ALL"]},"privileged":false,"readOnlyRootFilesystem":false,"runAsGroup":1000,"runAsNonRoot":true,"runAsUser":1000,"seccompProfile":{"type":"RuntimeDefault"}}https://kubernetes.io/docs/tasks/configure-pod-container/security-context/
serviceobject{"annotations":{},"containerPort":6052,"port":6052,"type":"ClusterIP"}https://kubernetes.io/docs/concepts/services-networking/service
service.annotationsobject{}Annotations
serviceAccountobject{"annotations":{},"automount":true,"create":true,"name":""}https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account
serviceAccount.annotationsobject{}Annotations to add to the service account
serviceAccount.automountbooltrueAutomatically mount a ServiceAccount's API credentials?
serviceAccount.createbooltrueSpecifies whether a service account should be created
serviceAccount.namestring""If not set and create is true, a name is generated using the fullname template
tolerationslist[]https://kubernetes.io/docs/concepts/scheduling-eviction/taint-and-toleration
updateStrategyobject{"type":"RollingUpdate"}Deployment strategy

Deploy esphome with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has esphome 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 chartesphome is pinned at v1.0.0 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