umami
by harish2k01
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
| Key | Type | Default | Description |
|---|---|---|---|
replicaCount | int | 1 | Number of Umami replicas. |
image.repository | string | ghcr.io/umami-software/umami | Umami container image repository. |
image.tag | string | 3.5.0 | Umami container image tag. |
image.pullPolicy | string | IfNotPresent | Container image pull policy. |
service.type | string | ClusterIP | Kubernetes Service type. |
service.port | int | 3000 | Service port. |
service.targetPort | int | 3000 | Umami container port. |
ingress.enabled | bool | false | Create an Ingress resource. |
httpRoutes.main.enabled | bool | false | Create a Gateway API HTTPRoute. |
database.postgresql.enabled | bool | true | Deploy bundled PostgreSQL. |
database.postgresql.auth.database | string | umami | Bundled PostgreSQL database name. |
database.postgresql.auth.username | string | umami | Bundled PostgreSQL username. |
database.postgresql.auth.password | string | umami | Inline database password for evaluation. |
database.postgresql.auth.existingSecret | string | "" | Existing Secret containing the database password. |
database.postgresql.persistence.enabled | bool | true | Enable PostgreSQL persistent storage. |
database.postgresql.persistence.size | string | 8Gi | PostgreSQL storage size. |
database.external.enabled | bool | false | Use an external PostgreSQL DATABASE_URL. |
database.external.url | string | "" | Inline external DATABASE_URL for evaluation. |
database.external.existingSecret | string | "" | Existing Secret containing DATABASE_URL. |
umami.secrets.existingSecret | string | "" | Existing Secret containing APP_SECRET. |
umami.secrets.inline.APP_SECRET | string | replace-me-with-a-random-string | Inline APP_SECRET for evaluation. |
umami.env | object | {PORT: "3000", DISABLE_TELEMETRY: "1"} | Non-secret Umami runtime environment variables. |
umami.envFrom | list | [] | Extra envFrom entries. |
umami.extraVolumes | list | [] | Additional pod volumes. |
umami.extraVolumeMounts | list | [] | Additional container volume mounts. |
umami.resources | object | {} | Umami CPU and memory requests/limits. |
nodeSelector | object | {} | Umami pod node selector. |
tolerations | list | [] | Umami pod tolerations. |
affinity | object | {} | 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.
| Key | Default | Description |
|---|---|---|
httpRoutes | Disabled main entry | Named HTTPRoutes; defaults create no routes. |
httpRoutes.<name>.enabled | true | Set false to omit an entry, including its attachments. |
httpRoutes.<name>.parentRefs | Required when enabled | Gateway references, with optional namespace and listener section. |
httpRoutes.<name>.hostnames | Required when enabled | Independent explicit hostname list. |
httpRoutes.<name>.annotations | {} | Per-route annotations. |
httpRoutes.<name>.rules | Path 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartumami is pinned at v0.4.0 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