retool
by Zeet
A Helm chart for Kubernetes
About this chart
retool-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.0.
- 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
retoolchart:$ helm search repo retool/retool NAME CHART VERSION APP VERSION DESCRIPTION retool/retool 4.0.0 2.66.2 A Helm chart for Kubernetes -
Run this command
git clone https://github.com/tryretool/retool-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. -
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.
-
Now you're all ready to install Retool:
$ helm install my-retool retool/retool -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.
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
GKE-specific configurations:
- Specify
/*as the value ofingress.hosts.paths.path. - Comment out
ingress.tls.servicePortas it is not required.
Deploy retool with OpenTenant
Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has retool 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 is pinned at v0.4.11 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