metabase
by pmint93
The easy, open source way for everyone in your company to ask questions and learn from data.
About this chart
Metabase
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.
| Parameter | Description | Default |
|---|---|---|
| replicaCount | desired number of controller pods | 1 |
| pdb.create | Enable/disable a Pod Disruption Budget creation | false |
| pdb.minAvailable | Minimum number/percentage of pods that should remain scheduled | 1 |
| pdb.maxUnavailable | Maximum number/percentage of pods that may be made unavailable | |
| commonLabels | labels added to the metadata of every object | {} |
| deploymentAnnotations | extra deployment annotations | {} |
| deploymentLabels | extra deployment labels | {} |
| podAnnotations | controller pods annotations | {} |
| podLabels | extra pods labels | {} |
| image.repository | controller container image repository | metabase/metabase |
| image.tag | controller container image tag | null |
| image.command | controller container image command | [] |
| image.pullPolicy | controller container image pull policy | IfNotPresent |
| image.pullSecrets | controller container image pull secrets | [] |
| fullnameOverride | String to fully override metabase.fullname template | null |
| listen.host | Listening on a specific network host | 0.0.0.0 |
| listen.port | Listening on a specific network port | 3000 |
| monitoring.enabled | Enable prometheus endpoint | false |
| monitoring.port | Listening port for prometheus endpoint | 9191 |
| monitoring.serviceMonitor.enabled | Enable ServiceMonitor resource for prometheus scraping | false |
| ssl.enabled | Enable SSL to run over HTTPS | false |
| ssl.port | SSL port | null |
| ssl.keyStore | The key store in JKS format | null |
| ssl.keyStorePassword | The password for key Store | null |
| database.type | Backend database type | h2 |
| database.encryptionKey | Secret key for encrypt sensitive information into database | null |
| database.connectionURI | Database connection URI (alternative to the below settings) | null |
| database.host | Database host | null |
| database.port | Database port | null |
| database.file | Database file (for H2; also add a volume to store it!) | null |
| database.dbname | Database name | null |
| database.username | Database username | null |
| database.password | Database password | null |
| database.existingSecret | existing secret for database credentials | null |
| database.existingSecretUsernameKey | Username key for existing secret | null |
| database.existingSecretPasswordKey | Password key for existing secret | null |
| database.existingSecretConnectionURIKey | ConnectionURI key for existing secret | null |
| database.existingSecretEncryptionKeyKey | EncryptionKey key for existing secret | null |
| database.googleCloudSQL.instanceConnectionNames | Google Cloud SQL instance connection names. See values.yaml for details. | [] |
| database.googleCloudSQL.sidecarImage | Specific image for the Google Cloud SQL Auth proxy sidecar | gcr.io/cloudsql-docker/gce-proxy |
| database.googleCloudSQL.sidecarImageTag | Specific tag for the Google Cloud SQL Auth proxy sidecar image | latest |
| database.googleCloudSQL.resources | Google Cloud SQL Auth proxy resource requests and limits | {} |
| database.googleCloudSQL.securityContext | Google Cloud SQL Security Context | runAsNonRoot: true |
| database.postgresBackupHook.enabled | Enables pg_dump backup pre-upgrade hook of Metabase application database | false |
| database.postgresBackupHook.image | image that contains 'pg_dump' | postgres:latest |
| database.postgresBackupHook.existingSecret | existing secret for database credentials | null |
| database.postgresBackupHook.existingSecretUsernameKey | Username key for existing secret | null |
| database.postgresBackupHook.existingSecretPasswordKey | Password key for existing secret | null |
| database.postgresBackupHook.existingSecretHostKey | Username key for existing secret | null |
| database.postgresBackupHook.existingSecretPortKey | Password key for existing secret | null |
| database.postgresBackupHook.existingSecretDatabaseNameKey | Password key for existing secret | null |
| database.postgresBackupHook.existingSecretConnectionURIKey | ConnectionURI key for existing secret | null |
| database.postgresBackupHook.pvcName | name of the PersistenceVolumeClaim to store the backup | null |
| database.postgresBackupHook.schema | pg_dump '--schema' option | null |
| password.complexity | Complexity requirement for Metabase account's password | normal |
| password.length | Minimum length required for Metabase account's password | 6 |
| timeZone | Service time zone | UTC |
| emojiLogging | Get a funny emoji in service log | true |
| colorLogging | Color log lines. When set to false it will disable log line colors | true |
| javaOpts | JVM options | null |
| pluginsDirectory | A directory with Metabase plugins | null |
| extraInitContainers | Additional init containers e.g. to download plugins | [] |
| extraVolumes | Additional server volumes | [] |
| extraVolumeMounts | Additional server volumeMounts | [] |
| startupProbe.timeoutSeconds | When the probe times out | 3 |
| startupProbe.failureThreshold | Minimum consecutive failures for the probe | 60 |
| startupProbe.periodSeconds | How often to perform the probe | 5 |
| livenessProbe.initialDelaySeconds | Delay before liveness probe is initiated | 5 |
| livenessProbe.timeoutSeconds | When the probe times out | 30 |
| livenessProbe.failureThreshold | Minimum consecutive failures for the probe | 6 |
| readinessProbe.initialDelaySeconds | Delay before readiness probe is initiated | 5 |
| readinessProbe.timeoutSeconds | When the probe times out | 3 |
| readinessProbe.periodSeconds | How often to perform the probe | 5 |
| service.type | ClusterIP, NodePort, or LoadBalancer | ClusterIP |
| service.loadBalancerSourceRanges | Array of Source Ranges | null |
| service.externalPort | Service external port | 80 |
| service.internalPort | Service internal port, should be the same as listen.port | 3000 |
| service.nodePort | Service node port | null |
| service.annotations | Service annotations | {} |
| service.labels | Service labels | {} |
| serviceAccount.create | Specifies whether a service account should be created | false |
| serviceAccount.annotations | Annotations to add to the service account | {} |
| serviceAccount.name | The name of the service account to use | null |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartmetabase is pinned at v2.27.8 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