metabase

by HelmForge

Helm chartv1.3.5App v0.65.6Apache-2.0Verified publisher

Metabase open-source BI platform with visual data exploration and PostgreSQL metadata store

About this chart

Metabase Helm Chart

Deploy Metabase on Kubernetes using the official metabase/metabase Docker image. Open-source BI platform with visual data exploration, SQL editor, and shareable dashboards connecting to 60+ databases.

Features

  • Visual data exploration — point-and-click queries, no SQL required
  • SQL editor — native SQL with autocomplete and snippets
  • 60+ database connectors — PostgreSQL, MySQL, BigQuery, Redshift, and more
  • PostgreSQL metadata store — bundled subchart or external database
  • Backups — optional PostgreSQL dump CronJob for S3-compatible object storage
  • Auto-generated encryption key — protects saved database credentials
  • JVM tuning — configurable JAVA_OPTS for memory optimization
  • Ingress support — TLS with cert-manager
  • Gateway API — HTTPRoute for clusters running Envoy Gateway or similar
  • Dual-stack networking — IPv4/IPv6 service support
  • External Secrets Operator — ExternalSecret for Vault, AWS Secrets Manager, and more
  • Secure runtime defaults — non-root UID 2000, read-only root filesystem, dropped capabilities, RuntimeDefault seccomp, and no API token mount
  • Optional disruption and traffic controls — PodDisruptionBudget and NetworkPolicy templates

Architecture

The release runs one Metabase Deployment behind a named-port Service. Metabase stores application metadata in either the bundled HelmForge PostgreSQL StatefulSet or an external PostgreSQL service; analytical source databases remain outside the chart boundary. The application Secret supplies the stable encryption key, while an optional backup CronJob exports only the PostgreSQL metadata database to S3-compatible storage.

The application container runs directly as UID/GID 2000, with a read-only root filesystem. Bounded emptyDir volumes provide the only writable paths: /plugins, /tmp, and /target. See DESIGN.md for trust boundaries, failure modes, and non-goals.

Installation

HTTPS repository:

helm repo add helmforge https://repo.helmforge.dev
helm repo update
helm install metabase helmforge/metabase -f values.yaml

OCI registry:

helm install metabase oci://ghcr.io/helmforgedev/helm/metabase -f values.yaml

Basic Example

# values.yaml — default values deploy with bundled PostgreSQL
# No configuration needed for a basic setup

After deploying, access Metabase:

kubectl port-forward svc/<release>-metabase 3000:80
# Open http://localhost:3000 to complete the setup wizard

External Database

postgresql:
  enabled: false

database:
  external:
    host: postgres.example.com
    name: metabase
    username: metabase
    existingSecret: metabase-db-credentials

JVM Tuning

metabase:
  javaOpts: "-Xmx2g -Xms1g"

resources:
  requests:
    memory: 2Gi
  limits:
    memory: 3Gi

Air-Gapped or Proxied Registries

The wait-for-db init container image is configurable separately from the main Metabase image, so proxy-based environments can mirror both images:

image:
  repository: registry.example.com/proxy/metabase/metabase
  tag: v0.65.6

waitForDatabase:
  image:
    repository: registry.example.com/proxy/library/busybox
    tag: "1.37"

Use extraInitContainers with extraVolumes and extraVolumeMounts when you need to prepare files before Metabase starts, for example JDBC drivers mounted into a shared plugin directory.

User-provided mounts at /plugins, /tmp, or /target replace the corresponding chart-managed mount. The reserved emptyDir remains declared but unmounted, so its runtimeStorage.*SizeLimit no longer applies to that path. User-provided volumes named runtime-plugins, runtime-tmp, or runtime-target replace the chart-managed volume with that name and remain safe for override mounts that reference the reserved name.

Dual-Stack Service

service:
  ipFamilyPolicy: PreferDualStack
  ipFamilies:
    - IPv4
    - IPv6

Gateway API (HTTPRoute)

Requires Gateway API CRDs and a compatible controller (e.g. Envoy Gateway).

gateway:
  enabled: true
  parentRefs:
    - name: envoy-gateway
      namespace: envoy-gateway-system
  hostnames:
    - metabase.example.com

Note: gateway.parentRefs is required when gateway.enabled=true. Existing releases that still carry gatewayAPI.enabled, gatewayAPI.gatewayName, and gatewayAPI.gatewayNamespace from older chart values remain supported as a deprecated upgrade alias. New configuration should use gateway.parentRefs.

External Secrets Operator (ESO)

Requires ESO installed. Set metabase.existingSecret so the chart-managed Secret is suppressed and the ExternalSecret is the single source of truth.

metabase:
  existingSecret: metabase-eso-secret
  existingSecretKey: encryption-secret-key

externalSecrets:
  enabled: true
  secretStoreRef:
    name: vault-backend
    kind: ClusterSecretStore
  data:
    - secretKey: encryption-secret-key
      remoteRef:
        key: metabase/credentials
        property: encryption-secret-key

Key Values

KeyDefaultDescription
image.repositorydocker.io/metabase/metabaseMetabase container image repository
image.tagv0.65.6Metabase container image tag
waitForDatabase.image.repositorydocker.io/library/busyboxWait-for-db init container image repository
waitForDatabase.image.tag1.37Wait-for-db init container image tag
waitForDatabase.image.pullPolicyIfNotPresentWait-for-db init container image pull policy
metabase.port3000Application port
metabase.encryptionSecretKey""Encryption key (auto-generated)
metabase.siteUrl""Public site URL
metabase.aiFeaturesEnabledfalseEnable Metabase AI features after configuring a supported provider
metabase.javaTimezoneUTCJava timezone
metabase.javaOpts""JVM memory options
probes.startup.initialDelaySeconds90Startup probe delay for first-run migrations and PostgreSQL bootstrap
postgresql.enabledtrueDeploy HelmForge PostgreSQL subchart (2.1.1)
postgresql.standalone.persistence.size8GiPostgreSQL standalone PVC size
resources.requests.memory512MiMetabase memory request
resources.limits.memory2GiMetabase memory limit
podSecurityContext.runAsNonRoottrueRequire a non-root runtime identity
podSecurityContext.runAsUser2000Run the official image without root privileges
podSecurityContext.runAsGroup2000Primary runtime group
podSecurityContext.fsGroup2000Writable volume group ownership
podSecurityContext.fsGroupChangePolicyOnRootMismatchAvoid unnecessary recursive ownership changes
podSecurityContext.seccompProfile.typeRuntimeDefaultApply the runtime default seccomp profile
securityContext.allowPrivilegeEscalationfalseBlock privilege escalation
securityContext.readOnlyRootFilesystemtrueMake the application root filesystem immutable
securityContext.capabilities.drop[ALL]Drop all Linux capabilities
runtimeStorage.pluginsSizeLimit512MiLimit the writable /plugins emptyDir
runtimeStorage.tmpSizeLimit512MiLimit the writable /tmp emptyDir
runtimeStorage.targetSizeLimit256MiLimit the writable /target log emptyDir
serviceAccount.automountServiceAccountTokenfalseKeep the Kubernetes API token out of the pod
pdb.enabledfalseRender a PodDisruptionBudget
networkPolicy.enabledfalseRestrict inbound traffic to declared peers
networkPolicy.egress.enabledfalseRestrict outbound traffic to declared rules
networkPolicy.ingress.allowSameNamespacetruePermit traffic from the release namespace
networkPolicy.ingress.extraFrom[]Add ingress peers such as a cross-namespace controller
networkPolicy.egress.allowDNStruePermit DNS while egress isolation is enabled
networkPolicy.egress.extraEgress[]Add complete rules for analytical databases and integrations
ingress.enabledfalseEnable ingress
service.port80Service port
service.ipFamilyPolicy~IP family policy (SingleStack, PreferDualStack, RequireDualStack)
service.ipFamilies[]IP families override (IPv4, IPv6)
extraInitContainers[]Additional init containers rendered after wait-for-db
gateway.enabledfalseEnable Gateway API HTTPRoute
gateway.parentRefs[]Gateway parentRefs (required when gateway.enabled=true)
gateway.hostnames[]HTTPRoute hostnames
gateway.path/HTTPRoute path match value
gateway.pathTypePathPrefixHTTPRoute path match type
externalSecrets.enabledfalseRender ExternalSecret resource
externalSecrets.apiVersionexternal-secrets.io/v1ExternalSecret API version
externalSecrets.refreshInterval"0"Refresh interval ("0" = one-time sync)
externalSecrets.secretStoreRef.name""SecretStore name (required when enabled)
externalSecrets.secretStoreRef.kindSecretStoreSecretStore kind
externalSecrets.data[]Remote key mappings (must include encryption key entry)

Upgrade Notes

Upgrading to v0.65.6

Metabase v0.65.6 includes upstream bug fixes, visualization fixes, and analytics stability improvements. Review the official v0.65.6 release notes.

Upgrading to v0.65.4

Metabase v0.65.4 includes upstream bug fixes and analytics improvements. Review the official v0.65.4 release notes.

Upgrading to v0.64.2

Metabase v0.64.2 is a patch release fixing analytics regressions and query optimizations. Review the official v0.64.2 release notes.

Upgrading to v0.64.1

Metabase v0.64.1 is the first public maintenance release in the 0.64 line. Back up the Metabase application database and review the official Metabase 64 changelog before upgrading. Keep the encryption key stable and validate the /api/health endpoint after rollout.

The generated application encryption key is reused from the existing Kubernetes Secret during connected Helm upgrades. For GitOps or offline rendering, set metabase.existingSecret to a stable Secret; helm template cannot look up the cluster's current key. An explicit metabase.encryptionSecretKey takes precedence and must not change after installation.

Metabase 0.64.1 includes the 0.64 feature line and its first maintenance fixes. The existing startup encryption behavior remains relevant: to refuse automatic cleanup of legacy plaintext fields, set MB_DISABLE_LEGACY_STARTUP_ENCRYPTION=true through metabase.extraEnv. The upstream default is false. This option is separate from enabling encryption on an application database that has never been encrypted. The patch also validates LDAP server certificates; verify the trust chain of your LDAP server before upgrading an LDAP-enabled deployment. See the 0.64.1 changelog.

Starting with 0.63.16, adding encryption to an existing unencrypted application database requires an explicit migration. Back up the database and key, stop all Metabase instances, and run the upstream enable-encryption JAR command with the same database environment and MB_ENCRYPTION_SECRET_KEY used by the deployment. Restart with that same key. Existing encrypted databases do not need this command. If encryption was already configured and Metabase reports an unencrypted database, investigate and restore a known-good backup; do not automatically re-encrypt it. See Metabase encryption instructions.

For signed database sessions, inject MB_SESSION_SECRET_KEY through metabase.extraEnv using a Kubernetes secretKeyRef. Use a separate stable secret of at least 16 characters. Setting or changing it logs out existing sessions; coordinate activation with users. See the session secret documentation.

Troubleshooting

Pod never becomes ready

Metabase may spend several minutes applying metadata migrations on the first start. Inspect the startup probe and both application and database logs before changing probe thresholds:

kubectl describe pod -l app.kubernetes.io/name=metabase
kubectl logs -l app.kubernetes.io/name=metabase -c metabase --tail=300

Plugin or temporary storage is full

The secure defaults bound /plugins, /tmp, and /target. Increase the corresponding runtimeStorage.*SizeLimit value after checking actual usage. Extra init containers can mount the reserved runtime-plugins volume to install JDBC drivers before Metabase starts.

NetworkPolicy blocks a connection

When networkPolicy.enabled=true, ingress defaults to the release namespace. Add the ingress controller to networkPolicy.ingress.extraFrom. When egress isolation is also enabled, add rules for every analytical database, SMTP server, webhook, and external API through networkPolicy.egress.extraEgress; an external metadata database also requires database.external.networkPolicyPeers.

Security

The application defaults enforce non-root execution, a read-only root filesystem, RuntimeDefault seccomp, dropped capabilities, bounded writable runtime vol

Deploy metabase with OpenTenant

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