superset

by Helm

Helm chartv1.2.0App 0.35.2

Apache Superset (incubating) is a modern, enterprise-ready business intelligence web application

About this chart

Apache superset

This is a fork of stable/superset. Please respect any Copyrights that may apply.

Introduction

This chart bootstraps an Apache superset deployment on a Kubernetes cluster using the Helm package manager.

TL;DR;

$ helm install cloudposse-incubator/superset

Prerequisites

  • Kubernetes 1.9+ with Beta APIs enabled
  • PV provisioner support in the underlying infrastructure (Only when persisting data)

Installing the Chart

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

$ helm repo rm cloudposse-incubator 2>/dev/null
$ helm repo add cloudposse-incubator https://charts.cloudposse.com/incubator/
$ helm install --name my-release stable/superset

The command deploys Superset 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

ParameterDescriptionDefault
image.repositorysuperset image repositoryamancevice/superset
image.tagsuperset image tag0.28.1
image.pullPolicyImage pull policyIfNotPresent
image.pullSecretsSecrets for private registry[]
configFileContent of superset_config.pySee values.yaml](./values.yaml)
extraConfigFilesContent of additional configuration files. Let the dictionary key name represent the name of the file and its value the files content.{}
initFileContent of init shell scriptSee values.yaml
replicasNumber of replicas of superset1
extraEnvExtra environment variables passed to pods{}
extraEnvFromSecretThe name of a Kubernetes secret (must be manually created in the same namespace) containing values to be added to the environment""
deploymentAnnotationsKey Value pairs of deployment level annotations. Useful for 3rd party integrations{}
persistence.enabledEnable persistencefalse
persistence.existingClaimProvide an existing PersistentVolumeClaim""
persistence.storageClassStorage class of backing PVCnil (uses alpha storage class annotation)
persistence.accessModeUse volume as ReadOnly or ReadWriteReadWriteOnce
persistence.sizeSize of data volume8Gi
resourcesCPU/Memory resource requests/limitsMemory: 256Mi, CPU: 50m / Memory: 500Mi, CPU: 500m
service.portTCP port9000
service.typek8s service type exposing ports, e.g. NodePortClusterIP
nodeSelectorNode labels for pod assignment{}
tolerationsToleration labels for pod assignment[]
livenessProbeParameter for liveness probeSee values.yaml
readinessProbeParameter for readiness probeSee values.yaml
ingress.enabledCreate an ingress resource when truefalse
ingress.annotationsingress annotations{}
ingress.hostsingress hosts[superset.domain.com]
ingress.pathingress path\
ingress.tlsingress tls[]
worker.enabledEnable celery workertrue
worker.concurrencyCelery worker concurrency10

see values.yaml

Init script

There is a script (init_superset.sh) which is called at the entrypoint of the container. It initialzes the db and creates an user account. You can configure the content with initFile. E.g. in order to change admin password and load examples:

initFile: |-
  /usr/local/bin/superset-init --username admin --firstname myfirstname --lastname mylastname --email [email protected] --password mypassword
  superset load_examples
  superset runserver

Persistence

The superset image mounts the SQLite DB file (superset.db) on path /var/lib/superset. The chart mounts a Persistent Volume at this location. The volume is created using dynamic volume provisioning. If the PersistentVolumeClaim should not be managed by the chart, define persistence.existingClaim.

Existing PersistentVolumeClaims

  1. Create the PersistentVolumeClaim with name superset-pvc in the same namespace
  2. Install the chart
$ helm install --set persistence.enabled=true,persistence.existingClaim=superset-pvc stable/superset

Deploy superset with OpenTenant

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