redash

by apecloud

Helm chartv3.0.1App 10.0.0.b50633Apache-2.0Verified publisher

Redash is an open source tool built for teams to query, visualize and collaborate.

About this chart

Redash

Redash is an open source tool built for teams to query, visualize and collaborate.

Introduction

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

This is a contributed project developed by volunteers and not officially supported by Redash.

Current chart version is 3.0.1

Prerequisites

  • At least 3 GB of RAM available on your cluster
  • Kubernetes 1.19+ - chart is tested with latest 3 stable versions
  • Helm 3 (Helm 2 depreciated)
  • PV provisioner support in the underlying infrastructure

Installing the Chart

To install the chart with the release name my-release, add the chart repository:

$ helm repo add redash https://getredash.github.io/contrib-helm-chart/

Create a values file with required secrets (store this securely!):

$ cat > my-values.yaml <<- EOM
redash:
  cookieSecret: $(openssl rand -base64 32)
  secretKey: $(openssl rand -base64 32)
postgresql:
  auth:
    password: $(openssl rand -base64 32)
redis:
  auth:
    password: $(openssl rand -base64 32)
EOM

Install the chart:

$ helm upgrade --install -f my-values.yaml my-release redash/redash

The command deploys Redash on the Kubernetes cluster in the default configuration. The configuration section and and default values.yaml 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.

Requirements

RepositoryNameVersion
oci://registry-1.docker.io/bitnamichartspostgresql^13.4.1
oci://registry-1.docker.io/bitnamichartsredis^18.9.0

Configuration

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

Values

KeyTypeDefaultDescription
adhocWorker.affinityobject{}Affinity for ad-hoc worker pod assignment ref
adhocWorker.envobject{"QUEUES":"queries","WORKERS_COUNT":2}Redash ad-hoc worker specific environment variables.
adhocWorker.livenessProbestringnilRedash ad-hoc worker liveness probe to ensure adhoc workers are running fine.
adhocWorker.nodeSelectorobject{}Node labels for ad-hoc worker pod assignment ref
adhocWorker.podAnnotationsobject{}Annotations for adhoc worker pod assignment ref
adhocWorker.podLabelsobject{}Labels for adhoc worker pod assignment ref
adhocWorker.podSecurityContextobject{}Security contexts for ad-hoc worker pod assignment ref
adhocWorker.replicaCountint1Number of ad-hoc worker pods to run
adhocWorker.resourcesstringnilAd-hoc worker resource requests and limits ref
adhocWorker.securityContextobject{}
adhocWorker.tolerationslist[]Tolerations for ad-hoc worker pod assignment ref
adhocWorker.volumeMountslist[]VolumeMounts for ad-hoc worker pod assignment ref
adhocWorker.volumeslist[]Volumes for ad-hoc pod worker assignment ref
envobject{"PYTHONUNBUFFERED":0}Redash global environment variables - applied to both server and worker containers.
externalPostgreSQLstringnilExternal PostgreSQL configuration. To use an external PostgreSQL instead of the automatically deployed postgresql chart: set postgresql.enabled to false then uncomment and configure the externalPostgreSQL connection URL (e.g. postgresql://user:pass@host:5432/database)
externalPostgreSQLSecretobject{}Read external PostgreSQL configuration from a secret. This should point at a secret file with a single key which specifies the connection string.
externalRedisstringnilExternal Redis configuration. To use an external Redis instead of the automatically deployed redis chart: set redis.enabled to false then uncomment and configure the externalRedis connection URL (e.g. redis://user:pass@host:6379/database).
externalRedisSecretobject{}Read external Redis configuration from a secret. This should point at a secret file with a single key which specifies the connection string.
fullnameOverridestring""

Deploy redash with OpenTenant

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