redash
by apecloud
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
| Repository | Name | Version |
|---|---|---|
| oci://registry-1.docker.io/bitnamicharts | postgresql | ^13.4.1 |
| oci://registry-1.docker.io/bitnamicharts | redis | ^18.9.0 |
Configuration
The following table lists the configurable parameters of the Redash chart and their default values.
Values
| Key | Type | Default | Description |
|---|---|---|---|
| adhocWorker.affinity | object | {} | Affinity for ad-hoc worker pod assignment ref |
| adhocWorker.env | object | {"QUEUES":"queries","WORKERS_COUNT":2} | Redash ad-hoc worker specific environment variables. |
| adhocWorker.livenessProbe | string | nil | Redash ad-hoc worker liveness probe to ensure adhoc workers are running fine. |
| adhocWorker.nodeSelector | object | {} | Node labels for ad-hoc worker pod assignment ref |
| adhocWorker.podAnnotations | object | {} | Annotations for adhoc worker pod assignment ref |
| adhocWorker.podLabels | object | {} | Labels for adhoc worker pod assignment ref |
| adhocWorker.podSecurityContext | object | {} | Security contexts for ad-hoc worker pod assignment ref |
| adhocWorker.replicaCount | int | 1 | Number of ad-hoc worker pods to run |
| adhocWorker.resources | string | nil | Ad-hoc worker resource requests and limits ref |
| adhocWorker.securityContext | object | {} | |
| adhocWorker.tolerations | list | [] | Tolerations for ad-hoc worker pod assignment ref |
| adhocWorker.volumeMounts | list | [] | VolumeMounts for ad-hoc worker pod assignment ref |
| adhocWorker.volumes | list | [] | Volumes for ad-hoc pod worker assignment ref |
| env | object | {"PYTHONUNBUFFERED":0} | Redash global environment variables - applied to both server and worker containers. |
| externalPostgreSQL | string | nil | External 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) |
| externalPostgreSQLSecret | object | {} | Read external PostgreSQL configuration from a secret. This should point at a secret file with a single key which specifies the connection string. |
| externalRedis | string | nil | External 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). |
| externalRedisSecret | object | {} | Read external Redis configuration from a secret. This should point at a secret file with a single key which specifies the connection string. |
| fullnameOverride | string | "" |
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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartredash is pinned at v3.0.1 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