umami

by harish2k01

Helm chartv0.4.0App 3.5.0MITVerified publisher

A Helm chart for Umami, a privacy-focused web analytics platform

About this chart

Umami Helm Chart

Browse the Helm chart catalog to explore available charts and installation commands.

This chart deploys Umami, a privacy-focused web analytics platform, on Kubernetes.

[!NOTE] This is an unofficial community Helm chart maintained by harish2k01. It is not affiliated with or endorsed by the upstream project. For chart issues, questions, or improvements, please open an issue in the harish2k01/helm-charts repository.

Install From Repository

helm repo add harish2k01 https://harish2k01.github.io/helm-charts
helm repo update
helm install umami harish2k01/umami

Install From OCI

helm install umami oci://ghcr.io/harish2k01/helm-charts/umami --version 0.4.0

Database Configuration

Umami v3 requires PostgreSQL. The chart enables a bundled PostgreSQL StatefulSet by default for simple installs:

database:
  postgresql:
    enabled: true
    auth:
      database: umami
      username: umami
      existingSecret: umami-db
      passwordKey: db-password

For production, create the database password Secret yourself:

kubectl create secret generic umami-db --from-literal=db-password='change-me'

Use an external PostgreSQL database by disabling the bundled database and providing a DATABASE_URL Secret:

kubectl create secret generic umami-db-external \
  --from-literal=DATABASE_URL='postgresql://umami:[email protected]:5432/umami'
database:
  postgresql:
    enabled: false
  external:
    enabled: true
    existingSecret: umami-db-external
    databaseUrlKey: DATABASE_URL

Application Secret

Umami requires APP_SECRET for authentication tokens. Create it outside Helm for production:

kubectl create secret generic umami-secrets \
  --from-literal=APP_SECRET="$(openssl rand -hex 32)"
umami:
  secrets:
    existingSecret: umami-secrets

The default inline values are suitable only for quick local evaluation.

Ingress

ingress:
  enabled: true
  className: nginx
  hosts:
    - host: umami.example.com
      paths:
        - path: /
          pathType: Prefix
  tls:
    - secretName: umami-tls
      hosts:
        - umami.example.com

Gateway API HTTPRoute

httpRoutes:
  main:
    enabled: true
    parentRefs:
      - name: gateway
        namespace: gateway-system
        sectionName: https
    hostnames:
      - umami.example.com

Helm Values Reference

KeyTypeDefaultDescription
replicaCountint1Number of Umami replicas.
image.repositorystringghcr.io/umami-software/umamiUmami container image repository.
image.tagstring3.5.0Umami container image tag.
image.pullPolicystringIfNotPresentContainer image pull policy.
service.typestringClusterIPKubernetes Service type.
service.portint3000Service port.
service.targetPortint3000Umami container port.
ingress.enabledboolfalseCreate an Ingress resource.
httpRoutes.main.enabledboolfalseCreate a Gateway API HTTPRoute.
database.postgresql.enabledbooltrueDeploy bundled PostgreSQL.
database.postgresql.auth.databasestringumamiBundled PostgreSQL database name.
database.postgresql.auth.usernamestringumamiBundled PostgreSQL username.
database.postgresql.auth.passwordstringumamiInline database password for evaluation.
database.postgresql.auth.existingSecretstring""Existing Secret containing the database password.
database.postgresql.persistence.enabledbooltrueEnable PostgreSQL persistent storage.
database.postgresql.persistence.sizestring8GiPostgreSQL storage size.
database.external.enabledboolfalseUse an external PostgreSQL DATABASE_URL.
database.external.urlstring""Inline external DATABASE_URL for evaluation.
database.external.existingSecretstring""Existing Secret containing DATABASE_URL.
umami.secrets.existingSecretstring""Existing Secret containing APP_SECRET.
umami.secrets.inline.APP_SECRETstringreplace-me-with-a-random-stringInline APP_SECRET for evaluation.
umami.envobject{PORT: "3000", DISABLE_TELEMETRY: "1"}Non-secret Umami runtime environment variables.
umami.envFromlist[]Extra envFrom entries.
umami.extraVolumeslist[]Additional pod volumes.
umami.extraVolumeMountslist[]Additional container volume mounts.
umami.resourcesobject{}Umami CPU and memory requests/limits.
nodeSelectorobject{}Umami pod node selector.
tolerationslist[]Umami pod tolerations.
affinityobject{}Umami pod affinity rules.

Optional runtime configuration

umami.env contains commented examples for collection, privacy, proxy, framing and geo settings. Use umami.extraEnv for individual Secret references or umami.envFrom for a complete Secret/ConfigMap. DATABASE_URL and APP_SECRET remain controlled by the database and Secret sections.

umami:
  env:
    MCP_ENABLED: "1"
  extraEnv:
    - name: TWO_FACTOR_ENCRYPTION_KEY
      valueFrom:
        secretKeyRef:
          name: umami-2fa
          key: encryption-key

The 2FA key must be 64 hexadecimal characters and stable across pod replacements. MCP requires an Umami API key. startupProbe defaults to a 20-minute migration/startup budget and may be customized as a Kubernetes probe. Build-time frontend options require a custom image. See CHANGELOG.md for release and migration details.

StatefulSet claim labels

Claim templates use stable identity labels so chart/app version changes do not modify immutable storage metadata. Normal workload labels still report the current versions. The following values merge explicitly pinned labels into each claim template:

  • database.postgresql.persistence.claimTemplateLabels

For an existing StatefulSet created by an older chart, copy the labels from its current spec.volumeClaimTemplates[].metadata.labels into the corresponding map before the first upgrade. Keep any historical helm.sh/chart and app.kubernetes.io/version labels fixed there; they describe the original claim template, not the running app. This preserves the immutable template without deleting or replacing the StatefulSet/PVC. Empty defaults suit new installations. Helm lookup is not required, so GitOps/offline rendering remains deterministic. Do not remove pinned labels later without a separately planned migration. Storage size, claim names, access modes and other immutable fields have their own migration constraints.

Multiple HTTPRoutes

Use httpRoutes to define one or more routes, each with its own Gateway references, hostnames, annotations, and rules. The default main entry is disabled.

httpRoutes:
  internal:
    parentRefs:
      - name: internal-gateway
        namespace: ingress
        sectionName: https
    hostnames: [app.internal.example.com]
  external:
    parentRefs:
      - name: external-gateway
        namespace: ingress
        sectionName: https
    hostnames: [app.example.com]

Each map key is a lowercase DNS label of up to 40 characters and becomes the resource-name suffix (<app-fullname>-internal, for example). Long base names are shortened to keep the suffix and stay within 63 characters; collisions fail rendering.

KeyDefaultDescription
httpRoutesDisabled main entryNamed HTTPRoutes; defaults create no routes.
httpRoutes.<name>.enabledtrueSet false to omit an entry, including its attachments.
httpRoutes.<name>.parentRefsRequired when enabledGateway references, with optional namespace and listener section.
httpRoutes.<name>.hostnamesRequired when enabledIndependent explicit hostname list.
httpRoutes.<name>.annotations{}Per-route annotations.
httpRoutes.<name>.rulesPath prefix /Gateway API matches and filters. Backend references are always supplied by the chart using its application Service and HTTP port.

Each route has independent hostnames, attachments, annotations, and rules. Chart-specific backend behavior is retained; Ghost also includes its ActivityPub endpoints when enabled. Gateway API CRDs and a compatible controller are required; the referenced Gateway must allow attachment from this namespace.

Migration from the single-route option

httpRoute has been removed. Move its settings under httpRoutes.main and remove the old key entirely, including httpRoute.enabled: false. Old values fail rendering with a migration message instead of silently dropping traffic. The old resource <app-fullname> is replaced by <app-fullname>-main; coordinate the upgrade with your GitOps pruning policy to avoid overlapping or missing routes. Multiple hostnames and parent references apply to the whole route; use separate entries when each hostname group must attach to a different Gateway.

Deploy umami with OpenTenant

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