metabase

by Wiremind

Helm chartv2.27.5-wiremind0App v0.61.1.xVerified publisher

The easy, open source way for everyone in your company to ask questions and learn from data. Wiremind fork, adds commonLabels and standard app.kubernetes.io labels.

About this chart

Metabase

This chart is a Wiremind fork of pmint93/metabase. See FORK.md for the changes and for how to re-apply them on an upstream bump.

Metabase is the easy, open source way for everyone in your company to ask questions and learn from data.

Introduction

This chart bootstraps a Metabase deployment on a Kubernetes cluster using the Helm package manager.

Prerequisites

  • Kubernetes 1.4+

Get Repo Info

helm repo add pmint93 https://pmint93.github.io/helm-charts
helm repo update

See helm repo for command documentation.

Installing the Chart

# Helm 3
$ helm install [RELEASE_NAME] pmint93/metabase

# Helm 2
$ helm install --name [RELEASE_NAME] pmint93/metabase

The command deploys Metabase on the Kubernetes cluster in the default configuration. The configuration section lists the parameters that can be configured during installation.

Tip: List all releases using helm list

Uninstalling the Chart

# Helm 3
$ helm uninstall [RELEASE_NAME]

# Helm 2
# helm delete --purge [RELEASE_NAME]

The command removes all the Kubernetes components associated with the chart and deletes the release.

Configuration

The following table lists the configurable parameters of the Metabase chart and their default values.

ParameterDescriptionDefault
replicaCountdesired number of controller pods1
pdb.createEnable/disable a Pod Disruption Budget creationfalse
pdb.minAvailableMinimum number/percentage of pods that should remain scheduled1
pdb.maxUnavailableMaximum number/percentage of pods that may be made unavailable
commonLabelsextra labels on every object (wiremind fork, see FORK.md){}
deploymentAnnotationsextra deployment annotations{}
deploymentLabelsextra deployment labels{}
podAnnotationscontroller pods annotations{}
podLabelsextra pods labels{}
image.repositorycontroller container image repositorymetabase/metabase
image.tagcontroller container image tagnull
image.commandcontroller container image command[]
image.pullPolicycontroller container image pull policyIfNotPresent
image.pullSecretscontroller container image pull secrets[]
fullnameOverrideString to fully override metabase.fullname templatenull
listen.hostListening on a specific network host0.0.0.0
listen.portListening on a specific network port3000
monitoring.enabledEnable prometheus endpointfalse
monitoring.portListening port for prometheus endpoint9191
monitoring.serviceMonitor.enabledEnable ServiceMonitor resource for prometheus scrapingfalse
ssl.enabledEnable SSL to run over HTTPSfalse
ssl.portSSL portnull
ssl.keyStoreThe key store in JKS formatnull
ssl.keyStorePasswordThe password for key Storenull
database.typeBackend database typeh2
database.encryptionKeySecret key for encrypt sensitive information into databasenull
database.connectionURIDatabase connection URI (alternative to the below settings)null
database.hostDatabase hostnull
database.portDatabase portnull
database.fileDatabase file (for H2; also add a volume to store it!)null
database.dbnameDatabase namenull
database.usernameDatabase usernamenull
database.passwordDatabase passwordnull
database.existingSecretexisting secret for database credentialsnull
database.existingSecretUsernameKeyUsername key for existing secretnull
database.existingSecretPasswordKeyPassword key for existing secretnull
database.existingSecretConnectionURIKeyConnectionURI key for existing secretnull
database.existingSecretEncryptionKeyKeyEncryptionKey key for existing secretnull
database.googleCloudSQL.instanceConnectionNamesGoogle Cloud SQL instance connection names. See values.yaml for details.[]
database.googleCloudSQL.sidecarImageSpecific image for the Google Cloud SQL Auth proxy sidecargcr.io/cloudsql-docker/gce-proxy
database.googleCloudSQL.sidecarImageTagSpecific tag for the Google Cloud SQL Auth proxy sidecar imagelatest
database.googleCloudSQL.resourcesGoogle Cloud SQL Auth proxy resource requests and limits{}
database.googleCloudSQL.securityContextGoogle Cloud SQL Security ContextrunAsNonRoot: true
database.postgresBackupHook.enabledEnables pg_dump backup pre-upgrade hook of Metabase application databasefalse
database.postgresBackupHook.imageimage that contains 'pg_dump'postgres:latest
database.postgresBackupHook.existingSecretexisting secret for database credentialsnull
database.postgresBackupHook.existingSecretUsernameKeyUsername key for existing secretnull
database.postgresBackupHook.existingSecretPasswordKeyPassword key for existing secretnull
database.postgresBackupHook.existingSecretHostKeyUsername key for existing secretnull
database.postgresBackupHook.existingSecretPortKeyPassword key for existing secretnull
database.postgresBackupHook.existingSecretDatabaseNameKeyPassword key for existing secretnull
database.postgresBackupHook.existingSecretConnectionURIKeyConnectionURI key for existing secretnull
database.postgresBackupHook.pvcNamename of the PersistenceVolumeClaim to store the backupnull
database.postgresBackupHook.schemapg_dump '--schema' optionnull
password.complexityComplexity requirement for Metabase account's passwordnormal
password.lengthMinimum length required for Metabase account's password6
timeZoneService time zoneUTC
emojiLoggingGet a funny emoji in service logtrue
colorLoggingColor log lines. When set to false it will disable log line colorstrue
javaOptsJVM optionsnull
pluginsDirectoryA directory with Metabase pluginsnull
extraInitContainersAdditional init containers e.g. to download plugins[]
extraVolumesAdditional server volumes[]
extraVolumeMountsAdditional server volumeMounts[]
startupProbe.timeoutSecondsWhen the probe times out3
startupProbe.failureThresholdMinimum consecutive failures for the probe60
startupProbe.periodSecondsHow often to perform the probe5
livenessProbe.initialDelaySecondsDelay before liveness probe is initiated5
livenessProbe.timeoutSecondsWhen the probe times out30
livenessProbe.failureThresholdMinimum consecutive failures for the probe6
readinessProbe.initialDelaySecondsDelay before readiness probe is initiated5
readinessProbe.timeoutSecondsWhen the probe times out3
readinessProbe.periodSecondsHow often to perform the probe5
service.typeClusterIP, NodePort, or LoadBalancerClusterIP
service.loadBalancerSourceRangesArray of Source Rangesnull
service.externalPortService external port80
service.internalPortService internal port, should be the same as listen.port3000
service.nodePortService node portnull
service.annotationsService annotations{}
service.labelsService labels{}
serviceAccount.createSpecifies whether a service account should be createdfalse
serviceAccount.annotationsAnnotation

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 v2.27.5-wiremind0 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