openhab

by HelmForge

Helm chartv1.2.6App 5.2.5Apache-2.0Verified publisher

Production-ready openHAB home automation platform for Kubernetes

About this chart

openHAB

Production-ready openHAB home automation platform for Kubernetes.

openHAB is an open-source home automation platform that integrates with hundreds of smart home technologies and provides a unified interface for all your devices.

Note: openHAB does not support horizontal scaling. This chart deploys a single instance backed by three persistent volumes.

Installation

Using HTTPS Repository

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install my-openhab helmforge/openhab

Using OCI Repository

helm install my-openhab oci://ghcr.io/helmforgedev/helm/openhab --version 0.1.0

Quick Start

Minimal Installation

helm install my-openhab helmforge/openhab

After installation, port-forward and open the setup wizard:

kubectl port-forward svc/my-openhab 8080:8080
# Open http://127.0.0.1:8080 and complete the admin setup wizard

With Ingress

helm install my-openhab helmforge/openhab \
  --set ingress.enabled=true \
  --set ingress.ingressClassName=nginx \
  --set "ingress.hosts[0].host=openhab.myhouse.com" \
  --set "ingress.hosts[0].paths[0].path=/" \
  --set "ingress.hosts[0].paths[0].pathType=Prefix"

With GitOps Configuration (ConfigMaps)

# values.yaml
configMaps:
  sitemaps:
    enabled: true
    files:
      myhome.sitemap: |
        sitemap myhome label="My Home" {
          Frame label="Lights" {
            Switch item=Light_Living label="Living Room"
          }
        }
  items:
    enabled: true
    files:
      lights.items: |
        Switch Light_Living "Living Room" <light>
helm install my-openhab helmforge/openhab -f values.yaml

Features

  • Single-instance StatefulSet with stable PVC attachment
  • Three persistent volumes (userdata, conf, addons) with configurable sizes
  • ConfigMap-based startup sync for sitemaps, things, and items into the writable conf PVC
  • Correct security context (fsGroup: 9001; runAsUser/runAsGroup intentionally unset — entrypoint manages privilege drop via gosu)
  • Capability-free, non-escalating helper containers with read-only root filesystems
  • Startup/liveness/readiness probes via /rest/uuid (returns 200, no auth required)
  • Optional Ingress with websocket annotation guidance for /rest/events
  • Optional Gateway API HTTPRoute for shared Gateway deployments
  • Optional Karaf SSH admin console (port 8101)
  • Namespace override support for pre-created operational namespaces
  • Optional admin credentials Secret
  • Prometheus metrics via /rest/metrics/prometheus (pod annotations + ServiceMonitor)
  • Automated S3 backup via CronJob (tar + MinIO client)
  • Fail-fast validation (replicaCount must be 1)

Configuration

Profile Presets

openHAB does not support clustering, so this chart does not use profile presets. Use feature flags instead to enable optional components.

Key Parameters

ParameterDescriptionDefault
image.tagopenHAB image tag5.2.5
image.repositoryImage repositorydocker.io/openhab/openhab
replicaCountMust be 1 — no clustering support1
namespaceOverrideNamespace for chart-managed resources""
commonAnnotationsAnnotations added to every chart-managed resource{}
serviceAccount.automountServiceAccountTokenMount Kubernetes API token into the podfalse
podSecurityContext.fsGroupfsGroup for PVC ownership after privilege drop9001
podSecurityContext.seccompProfile.typePod seccomp profileRuntimeDefault
securityContext.allowPrivilegeEscalationPrevent privilege escalation in the application containerfalse
securityContext.readOnlyRootFilesystemRemains writable for openHAB OSGi/Karaf runtime statefalse
securityContext.capabilities.dropDrop the ambient Linux capability set[ALL]
securityContext.capabilities.addEntrypoint bootstrap capabilities[CHOWN, DAC_OVERRIDE, FOWNER, SETGID, SETUID]
service.typeService typeClusterIP
service.portHTTP port8080
service.ipFamilyPolicyHTTP Service dual-stack policy""
service.ipFamiliesHTTP Service IP families[]
ingress.enabledEnable Ingressfalse
ingress.ingressClassNameIngress class name""
env.TZTimezoneUTC
env.EXTRA_JAVA_OPTSExtra JVM options""
karaf.enabledEnable Karaf SSH consolefalse
karaf.service.ipFamilyPolicyKaraf Service dual-stack policy""
karaf.service.ipFamiliesKaraf Service IP families[]
admin.secretEnabledCreate admin credentials Secretfalse

Gateway API Parameters

ParameterDescriptionDefault
gateway.enabledEnable HTTPRoute creationfalse
gateway.hostnamesHTTPRoute hostnames[openhab.local]
gateway.parentRefsParent Gateway references[]

Persistence Parameters

ParameterDescriptionDefault
persistence.userdata.enabledEnable userdata PVCtrue
persistence.userdata.sizeuserdata PVC size5Gi
persistence.userdata.storageClassStorage class"" (cluster default)
persistence.userdata.existingClaimUse existing PVC""
persistence.userdata.subPathRelative directory in the userdata PVC""
persistence.conf.enabledEnable conf PVCtrue
persistence.conf.sizeconf PVC size1Gi
persistence.conf.existingClaimUse existing PVC""
persistence.conf.subPathRelative directory in the conf PVC""
persistence.addons.enabledEnable addons PVCtrue
persistence.addons.sizeaddons PVC size2Gi
persistence.addons.existingClaimUse existing PVC""
persistence.addons.subPathRelative directory in the addons PVC""

Warning: A new PVC may contain a lost+found directory at its root. openHAB then does not recognize the mounted directory as empty on its first start, skips initialization, and fails to start. Use a dedicated, empty subPath instead of mounting the PVC root in this case.

ConfigMap Parameters

ParameterDescriptionDefault
configMaps.sitemaps.enabledEnable sitemaps ConfigMapfalse
configMaps.sitemaps.filesMap of filename → content{}
configMaps.things.enabledEnable things ConfigMapfalse
configMaps.things.filesMap of filename → content{}
configMaps.items.enabledEnable items ConfigMapfalse
configMaps.items.filesMap of filename → content{}
configMaps.syncImage.tagBusyBox tag used by the ConfigMap sync init container1.37
configMaps.syncResourcesResource guardrails for the ConfigMap sync init containerrequests/limits set

Metrics Parameters

ParameterDescriptionDefault
metrics.enabledEnable Prometheus metrics supportfalse
metrics.podAnnotations.enabledAdd prometheus.io/* pod annotationstrue
metrics.serviceMonitor.enabledCreate ServiceMonitor for Prometheus Operatorfalse
metrics.serviceMonitor.namespaceServiceMonitor namespacerelease namespace
metrics.serviceMonitor.intervalScrape interval60s
metrics.serviceMonitor.scrapeTimeoutScrape timeout10s
metrics.serviceMonitor.additionalLabelsExtra labels on ServiceMonitor{}

Backup Parameters

ParameterDescriptionDefault
backup.enabledEnable automated backup CronJobfalse
backup.scheduleCron schedule0 3 * * *
backup.suspendSuspend the CronJobfalse
backup.concurrencyPolicyCronJob concurrency policyForbid
backup.successfulJobsHistoryLimitSuccessful job history to retain3
backup.failedJobsHistoryLimitFailed job history to retain3
backup.backoffLimitJob backoff limit1
backup.archivePrefixArchive filename prefixopenhab
backup.serviceAccount.createCreate a dedicated backup ServiceAccounttrue
backup.serviceAccount.automountServiceAccountTokenMount the Kubernetes API token in backup podsfalse
backup.serviceAccount.annotationsBackup ServiceAccount annotations (for example, an IRSA role){}
backup.serviceAccount.nameBackup ServiceAccount name override""
backup.include.userdataBack up /openhab/userdatatrue
backup.include.confBack up /openhab/conftrue
backup.images.utility.repositoryBackup utility imagedocker.io/library/alpine
backup.images.utility.tagBackup utility tag3.22
backup.images.uploader.repositoryS3 uploader imagedocker.io/helmforge/mc
backup.images.uploader.tagS3 uploader tag1.0.0
backup.resourcesResource requests/limits for backup containersrequests/limits set
backup.s3.endpointS3-compatible endpoint URL""
backup.s3.bucketTarget bucket name""
backup.s3.prefixKey prefix within the bucketopenhab
backup.s3.regionAWS region used by Pod Identity or IRSA""
backup.s3.accessKeyS3 access key""
backup.s3.secretKeyS3 secret key""
backup.s3.existingSecretExisting Secret name (keys: access-key, secret-key)""
backup.s3.credentialsFromPodIdentityUse EKS Pod Identity or IRSA instead of static credentialsfalse

Prometheus Metrics

openHAB exposes Prometheus metrics via the Metrics addon at:

GET /rest/metrics/prometheus   (port 8080, no authentication required)

Step 1 — Install the Metrics addon in openHAB: Settings → Add-on Store → Integrations → Metrics

Step 2 — Enable metrics in chart values:

# Annotation-based scraping (works without Prometheus Operator)
metrics:
  enabled: true
  podAnnotations:
    enabled: true

# --- OR ---

# Prometheus Operator (ServiceMonitor)
metrics:
  enabled: true
  podAnnotations:
    enabled: false
  serviceMonitor:
    enabled: true
    interval: 60s
    additionalLabels:
      release: prometheus   # must match your Prometheus selector

Metrics exposed: openHAB events (per topic), bundle states, thing states, rule executions, threadpool statistics, JVM metrics (memory, GC, threads).

See Prometheus Metrics Guide for full details.

Upgrade Notes

openHAB 5.2.5 includes the security fixes introduced in 5.2.2, plus fixes for authentication through openHAB Cloud and reverse proxies and the Main UI map tile provider. Back up the userdata, conf, and addons PVCs before upgrading. openHAB 5.x still requires Java 21, which is provided by the official container image used by this chart.

This upgrade changes security-sensitive behavior. Configure the Sitemap allowedHosts setting for every host used through the /proxy endpoint; the new allowlist is empty by default. Reassess trustedNetworks behind a reverse proxy because it now uses the actual client address and no longer trusts X-Forwarded-For. Third-party OAuth2 clients using /auth must use a same-origin redirect URI and PKCE S256. IP Camera binding users whose ONVIF events arrive through NAT or a proxy must add those source addresses to ipWhitelist.

Security Scan: openhab

FrameworkScore
MITRE + NSA + SOC288%

Security posture: acceptable with documented openHAB runtime exceptions for root bootstrap, writable runtime filesystem, and network policy delegation.

Examples

  • Simple Deployment
  • With Ingress + TLS
  • With ConfigMaps (GitOps)
  • Full Production

Automated Backup

The chart includes an optional CronJob that archives your openHAB data and uploads it to any S3-compatible storage using the MinIO client.

backup:
  enabled: true
  schedule: "0 3 * * *"
  s3:
    endpoint: "https://minio.example.com"
    bucket: "openhab-backups"
    prefix: "prod"
    accessKey: "AKIAEXAMPLE"
    secretKey: "supersecretkey"

To avoid storing credentials in values, use an existing Secret:

backup:
  enabled: true
  s3:
    endpoint: "https://minio.example.com"
    bucket: "openhab-backups"
    existingSecret: "my-s3-credentials"   # keys: access-key, secret-key

For IRSA, annotate the dedicated backup ServiceAccount and enable ambient credentials:

backup:
  enabled: true
  serviceAccount:
    annotations:
      eks.amazonaws.com/role-arn: arn:aws:iam::123456789012:role/openhab-backup
  s3:
    endpoint: "https://s3.amazonaws.com"
    bucket: "openhab-backups"
    region: "us-east-1"
    credentialsFromPodIdentity: true

For EKS Pod Identity, keep the same S3 values but omit the ServiceAccount role annotation. Install the EKS Pod Identity Agent and create an association for the rendered backup ServiceAccount. For release my-openhab, the default name is my-openhab-backup:

aws eks create-pod-identity-association \
  --cluster-name <cluster-name> \
  --namespace <namespace> \
  --service-account my-openhab-backup \
  --role-arn <role-arn>

If fullnameOverride or backup.serviceAccount.name is set, use the ServiceAccount name rendered by the chart instead.

See Automated Backup Guide for full details including restore instructions.

Architecture Guides

  • ConfigMaps & Startup Sync
  • Storage
  • Security
  • Prometheus Metrics
  • Automated Backup

First B

Deploy openhab with OpenTenant

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