growthbook

by One Acre Fund

Helm chartv0.3.0App 1.16.1Verified publisher

A Helm chart for Growthbook

About this chart

growthbook

A Helm chart for Growthbook

Maintainers

NameEmailUrl
bisonlou[email protected]
orchide[email protected]

TL;DR;

GrowthBook is an open-source remote configuration / activation flag service.

$ helm repo add one-acre-fund https://one-acre-fund.github.io/oaf-public-charts
$ helm install my-release one-acre-fund/growthbook

Managing credentials outside the chart

By default the chart creates the Secret holding JWT_SECRET, ENCRYPTION_KEY, MONGODB_URI and — when the matching feature is enabled — EMAIL_HOST_PASSWORD, LICENSE_KEY and SSO_CONFIG, from the values you supply.

Set growthbookSecret.create=false to have something else own it (ExternalSecrets, sealed secrets, or a Secret you apply yourself). The Deployment still reads every credential from that Secret by name, so it must supply all of the keys above.

Migrating an existing release is order-sensitive. Flipping create to false removes the Secret from the chart's desired state, and helm upgrade will delete the one it previously managed — while the Deployment still references it by name. Losing it mid-upgrade fails the rollout and destroys the credential data.

Do it in this order:

  1. Create the external Secret first, using the same name the chart used — growthbookSecret.name if set, otherwise the release fullname. Copy the existing values across; ENCRYPTION_KEY in particular cannot be regenerated without re-encrypting stored data.
  2. Confirm it holds every key the Deployment reads.
  3. Only then upgrade with growthbookSecret.create=false.

Under GitOps the same ordering applies. With ArgoCD, give the ExternalSecret argocd.argoproj.io/sync-wave: "-1" so it reconciles before the Deployment, and leave pruning disabled for the first sync so the previously Helm-managed Secret is not removed before its replacement exists.

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnami/mongodb~13.6.1

Values

KeyTypeDefaultDescription
affinityobject{}
autoscaling.enabledboolfalse
autoscaling.maxReplicasint100
autoscaling.minReplicasint1
autoscaling.targetCPUUtilizationPercentageint80
autoscaling.targetMemoryUtilizationPercentageint80
fullnameOverridestring""
growthbook.datasource.google.clientIdstringnil
growthbook.datasource.google.clientSecretstringnil
growthbook.datasource.google.enabledboolfalse
growthbook.email.enabledboolfalse
growthbook.email.hoststringnil
growthbook.email.hostPasswordstringnil
growthbook.email.hostUserstringnil
growthbook.email.portint25
growthbook.email.senderEmailstringnil
growthbook.email.siteManagerEmailstringnil
growthbook.encryptionKeystring"encryptionKeyString"
growthbook.externalMongodbUristringnil
growthbook.extraEnvVars.API_HOSTstring"https://my-api-host.io:443"
growthbook.extraEnvVars.APP_ORIGINstring"https://my-app-origin.io:443"
growthbook.extraEnvVars.NODE_ENVstring"production"
growthbook.jwtSecretstring"jwtSecretString"
growthbook.persistence.accessModes[0]string"ReadWriteMany"
growthbook.persistence.enabledbooltrue
growthbook.persistence.storagestring"3Gi"
growthbook.persistence.typestring"emptyDir"
growthbook.sso.enabledboolfalse
growthbook.sso.licenseKeystringnil
growthbook.sso.ssoConfigobject{}
growthbookSecret.createbooltrueCreate the Secret holding GrowthBook's credentials. Set false when ExternalSecrets or similar owns it — see "Managing credentials outside the chart".
growthbookSecret.namestring""Name of that Secret. Defaults to the release fullname.
image.pullPolicystring"Always"
image.repositorystring"growthbook/growthbook"
image.tagstring"latest"
imagePullSecretslist[]
ingress.annotations."kubernetes.io/ingress.class"string"nginx"
ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-headers"string"Authorization,Referer,sec-ch-ua,sec-ch-ua-mobile,sec-ch-ua-platform,User-Agent,X-Organization,Content-Type"
ingress.annotations."nginx.ingress.kubernetes.io/cors-allow-origin"string"https://my-app-origin.io"
ingress.annotations."nginx.ingress.kubernetes.io/enable-cors"string"true"
ingress.annotations."nginx.ingress.kubernetes.io/force-ssl-redirect"string"true"
ingress.apiHostNamestring"my-api-host.io"
ingress.appOriginNamestring"my-app-origin.io"
ingress.enabledboolfalse
ingress.namestring"growthbook-ingress"
ingress.secretNamestring"growthbook-tls"
mongodb.architecturestring"standalone"
mongodb.auth.databasestring"growthbook-db"
mongodb.auth.passwordstring"growthbook"
mongodb.auth.rootPasswordstring"password"
mongodb.auth.rootUserstring"root"
mongodb.auth.usernamestring"growthbook"
mongodb.enabledbooltrueInstall MongoDB?
mongodb.initdbScripts."grant-role.js"string"db = db.getSiblingDB('{{ .Values.auth.database }}')\ndb.grantRolesToUser(\"{{ .Values.auth.username }}\", [{ role: 'readWrite', db: \"{{ .Values.auth.database }}\" }])\n"
mongodb.replicaSetNamestring"rs0"
nameOverridestring""
nodeSelectorobject{}
port.backendPortint3100
port.frontendPortint3000
replicaCountint1
service.typestring"ClusterIP"
serviceAccount.annotationsobject{}
serviceAccount.createbooltrue
serviceAccount.namestring""
tolerationslist[]
volume.mountPathstring"/usr/local/src/app/packages/back-end/uploads"
volume.namestring"uploads-persistent-storage"

Deploy growthbook with OpenTenant

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