metabase

by joaquinito2051

Helm chartv0.5.0App v0.31.2

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.

TL;DR;

$ helm install <helm-repo>/metabase

$ helm install stable/metabase

Introduction

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

Prerequisites

  • Kubernetes 1.4+ with Beta APIs enabled

Installing the Chart

To install the chart with the release name my-release:

$ helm install --name my-release <helm-repo>/metabase

$ helm install --name my-release stable/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

To uninstall/delete the my-release deployment:

$ helm delete my-release

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
image.repositorycontroller container image repositorymetabase/metabase
image.tagcontroller container image tagv0.31.2
image.pullPolicycontroller container image pull policyIfNotPresent
listen.hostListening on a specific network host0.0.0.0
listen.portListening on a specific network port3000
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.dbnameDatabase namenull
database.usernameDatabase usernamenull
database.passwordDatabase passwordnull
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
javaOptsJVM optionsnull
pluginsDirectoryA directory with Metabase pluginsnull
service.typeClusterIP, NodePort, or LoadBalancerClusterIP
service.externalPortService external port80
service.internalPortService internal port, should be the same as listen.port3000
service.annotationsService annotations{}
ingress.enabledEnable ingress controller resourcefalse
ingress.hostsIngress resource hostnamesnull
ingress.pathIngress path/
ingress.labelsIngress labels configurationnull
ingress.annotationsIngress annotations configurationnull
ingress.tlsIngress TLS configurationnull
log4jPropertiesCustom log4j.properties filenull
resourcesServer resource requests and limits{}

The above parameters map to the env variables defined in metabase. For more information please refer to the metabase documentations.

Specify each parameter using the --set key=value[,key=value] argument to helm install. For example,

Specify each parameter using the `--set key=value[,key=value]` argument to `helm install`. For example,
$ helm install --name my-release \
  --set timeZone=US/Pacific,password.complexity=strong,password.length=10 \
    <helm-repo>/metabase
$ helm install --name my-release \

The above command sets the time zone to US/Pacific, strong user password complexity and minimum length at 10

Alternatively, a YAML file that specifies the values for the parameters can be provided while installing the chart. For example,

$ helm install --name my-release -f values.yaml <helm-repo>/metabase

$ helm install --name my-release -f values.yaml stable/metabase

Tip: You can use the default values.yaml

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 v0.5.0 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