bi-stack

by QuenchWorks

Helm chartv0.0.22App 0.63.22AGPL-3.0-onlyVerified publisher

Metabase (dashboards and questions) with ClickHouse (columnar analytics database) and PostgreSQL (Metabase's application database): Metabase is set up at install with an administrator and ClickHouse as a data source. All component images are QuenchWorks-hardened, nonroot, CVE-gated, pinned by digest and cosign-signed.

About this chart

Quenchworks bi-stack

Dashboards over a columnar store in one install: Metabase 0.63.22 with ClickHouse 26.7.37.6, and PostgreSQL as Metabase's application database. All images are QuenchWorks (nonroot, CVE-gated at build, pinned by digest, cosign-signed). A Job runs Metabase's first-run setup and adds ClickHouse as the data source "ClickHouse", so the first sign-in lands on a working Metabase.

Install

helm install bi oci://ghcr.io/quenchworks/charts/bi-stack -n bi --create-namespace \
  --set [email protected]
kubectl -n bi get secret bi-secrets -o jsonpath='{.data.metabase-admin-password}' | base64 -d
kubectl -n bi port-forward svc/bi-metabase 3000:3000

Sign in at http://127.0.0.1:3000 as admin.email with that password, then change it.

Values

KeyDefaultNotes
admin.email[email protected]the Metabase administrator the Job creates
admin.firstName, admin.lastNameMetabase, Admin
admin.siteNameQuenchWorks BI
metabase.*passes through to the metabase chart (ingress, TLS, resources)
clickhouse.*passes through to the clickhouse chart (persistence, TLS, resources)
setupJob.clickhouse.*bi-clickhouse:8123, user default, database defaultthe data source the Job adds

Notes

  • One stack per namespace: the Services are bi-metabase and bi-clickhouse (fixed with fullnameOverride), because the setup Job names them.
  • The Secret bi-secrets holds the ClickHouse password and the Metabase administrator password. Both are generated once and kept on upgrade and uninstall (helm.sh/resource-policy: keep).
  • The setup Job runs on every install and upgrade and changes nothing once Metabase is set up and a ClickHouse database exists. Changing admin.* after the first install has no effect: change the administrator in Metabase.
  • Metabase connects to ClickHouse as the default user. For dashboards, create a read-only ClickHouse user and edit the data source in Metabase (Admin, Databases).

Deploy bi-stack with OpenTenant

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