retool-wf
by Retool
A Helm chart for Kubernetes
About this chart
retool-workflows-helm
This repository contains the official Helm 3 chart for installing and configuring Retool on Kubernetes. For full documentation on all the ways you can deploy Retool on your own infrastructure, please see the Setup Guide.
Prerequisites
- This chart requires Helm 3.7.
- A PostgreSQL database.
- Persistent volumes are not reliable - we strongly recommend that a long-term installation of Retool host the database on an externally managed database (for example, AWS RDS).
Usage
-
Add the Retool Helm repository:
$ helm repo add retool https://charts.retool.com "retool" has been added to your repositories -
Ensure you have access to the
retool-wfchart:$ helm search repo retool/retool-wf NAME CHART VERSION APP VERSION DESCRIPTION retool/retool-wf 4.0.0 2.66.2 A Helm chart for Kubernetes -
Run this command
git clone https://github.com/tryretool/retool-workflows-helm.git -
Modify the
values.yamlfile:
-
Set values for
config.encryptionKeyandconfig.jwtSecret. They should each be a different long, random string that you keep private. See our docs on Environment Variables for more information on how they are used. -
Set
image.tagwith the version of Retool you want to install (i.e. a version in the format X.Y.Z). See our guide on Retool Release Versions to see our most recent version. The minimum supported image for Retool Workflows is 2.108.4 -
Set
config.licenseKeywith your license key. -
To force Retool to send the auth cookies over HTTP, set
config.useInsecureCookiestotrue. Leave the default value offalseif you will use https to connect to the instance. -
Set
workflows.enabledtotrueto enable Workflows.
-
Now you're all ready to install Retool:
$ helm install my-retool retool/retool-wf -f values.yaml
Additional Configuration
Externalize database
Modify values.yaml:
- Disable the included postgresql chart by setting
postgresql.enabledtofalse. Then specify your external database through theconfig.postgresql.\*properties at the top of the file. You will also need to specify these external database values inretool-temporal-services-helm.server.config.persistence.{default & visibility}.sql.
gRPC
-
Create a
configMapof the directory which contains yourprotofiles.$ kubectl create configmap protos --from-file=<protos-path> -
Modify
values.yaml:extraVolumeMounts: - name: protos mountPath: /retool_backend/protos readOnly: true extraVolumes: - name: protos configMap: name: protos env: PROTO_DIRECTORY_PATH=/retool_backend/protos
Ingress
Modify values.yaml:
- Uncomment
ingress.hostsand changeingress.hosts.hostto be the hostname where you will access Retool. - If you are implementing TLS for your Retool instance, uncomment
ingress.tlsand:- Specify the name of the SSL certificate to use as the value of
ingress.tls.secretName. - Specify an array containing the hostname where you will access Retool (the same value you configured for
ingress.hosts.host).
- Specify the name of the SSL certificate to use as the value of
- If you are want more control over the the ingress path, for example in order to create a rediect from port 80 to 443 with aws-load-balancer-controller, you may use
ingress.hosts.extraPaths- Specify the full object of a valid ingress path like shown in k8s docs or in values.yaml: ingress.hosts.extraPaths
GKE-specific configurations:
- Specify
/*as the value ofingress.hosts.paths.path. - Comment out
ingress.tls.servicePortas it is not required.
Deploy retool-wf with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has retool-wf 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 chartretool-wf is pinned at v4.13.0 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