kobotoolbox

by One Acre Fund

Helm chartv0.7.4Verified publisher

KoboToolbox field data collection solution

About this chart

kobotoolbox

KoboToolbox field data collection solution

Homepage: https://www.kobotoolbox.org/

Maintainers

NameEmailUrl
Yann-J[email protected]

Source Code

TL;DR;

KoboToolbox is an open-source field data collection tool optimised to build offline form-based apps.

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

Requirements

RepositoryNameVersion
https://charts.bitnami.com/bitnamimongodb~12.1.31
https://charts.bitnami.com/bitnamipostgresql~11.9.13
https://charts.bitnami.com/bitnamiredismain(redis)~16.12.3
https://charts.bitnami.com/bitnamirediscache(redis)~16.12.3

Values

KeyTypeDefaultDescription
enketo.apiKeystring"WEHQJCXHJ2XOBXGOGMXCUJYXQP9ZZFVY4FHLCSKJIWAWPTCMGMECGNBCHXVBFCFT1H5TQTQCKB0J7DF2X23WC7EHOCCVQ7K8CY6QO9C8NMERACUM6S2QQEER"Random API key
enketo.configstringsee values.yamlEnketo configuration - will be evaluated as a template
enketo.encryptionKeystring"w0RkyuQSB33md8cZB5Xx"Random API key
enketo.image.namestring"enketo/enketo-express"Enketo image name - the web-based form preview and filling UI
enketo.image.tagstring"3.0.4"Enketo image tag See https://hub.docker.com/r/kobotoolbox/enketo-express-extra-widgets
enketo.lessSecureEncryptionKeystring"wUNQWPwA3bDVzckKKtS4"Random API key
enketo.logoSourcestring""Logo source (data:URI or relative path in public/images folder)
enketo.replicasint1Number of Enketo pods
enketo.subdomainstring"ee"DNS subdomain to serve Enketo from
external.google.analyticsTokenstring""
external.google.apiKeystring""
external.ravenDSN.kobocatstring""
external.ravenDSN.kpistring""
external.ravenDSN.kpiJsstring""
flower.auth.authenticatedEmailsstring`"[email protected][email protected]"`
flower.auth.enabledboolfalse
flower.auth.oauthKeystring"auth-key"
flower.auth.oauthSecretstring"auth-secret"
flower.auth.redirectUrl.kobocatstring"http://flower.kobocat.com/login"
flower.auth.redirectUrl.kpistring"http://flower.kpi.com/login"
flower.enabledboolfalse
flower.ports.kobocatint5577
flower.ports.kpiint5566
general.debugboolfalseEnable various debug flags?
general.djangoSecretstring"EKMvRtT2RFB3xDvFty4SVCsTyaQAHS9aA2mkRqtTp9zQYz48fp"Random Django secret
general.externalDomainstring"example.com"Parent domain to serve all apps from WARNING: The subdomains MUST be reachable since the application will try to call itself at this address
general.externalPortstringnilPublic URL port
general.externalSchemestring"http"Public URL scheme
general.forceInternalboolfalseSet this to true in order to force internal resolution of external domains, in case those aren't reachable from inside the containers. Useful for troubleshooting, but won't work if the public scheme is https
general.mediaStorage.accessModestring"ReadWriteOnce"Needs to be ReadWriteMany if you intend to scale to more than 1 pod!
general.mediaStorage.enabledboolfalseShould we enable media volume (can be disabled if using online storage)
general.mediaStorage.sizestring"10Gi"Storage size for uploaded media volume
general.mediaStorage.storageClassstring""Storage class will default to global.storageClass if provided, but can be specifically overridden here
general.replicasint1Replica for the kpi+kobocat pod. WARNING: if using more than 1 replicas, you NEED to use a ReadWriteMany accessmode in mediaStorage.accessMode, and a storage class that supports it!
general.sentry.environmentstring"development"
general.serviceTypestring"ClusterIP"Service type to expose
general.superUser.passwordstring"kobo"Admin user password
general.superUser.usernamestring"kobo"Admin user name - This user will have access to kobotoolbox UI but also the built-in Django admin interface (/admin)
general.supportEmailstring"[email protected]"Support email visible from the website
global.redis.passwordstring"brFdS9b7Xp"Redis password
global.storageClassstring"standard"Will be used by this and all subcharts
ingress.annotationsobject{}Ingress annotations
ingress.enabledboolfalseInstall ingress?
ingress.tlsobject{}Ingress TLS settings
kobocat.extraEnvobjectsee values.yamlDictionary of env variables to pass
kobocat.extraSecretEnvobject{}Azure blob storage credentials KOBOCAT_DEFAULT_FILE_STORAGE: "kobo.apps.storage_backends.private_azure_storage.PrivateAzureStorage" AZURE_ACCOUNT_NAME: "storage-account-name" AZURE_CONTAINER: "storage-container-name" AZURE_URL_EXPIRATION_SECS: "3600"
kobocat.image.namestring"kobotoolbox/kobocat"KoboCat docker image name
kobocat.image.tagstring"2.022.24a"KoboCat docker image tag see https://hub.docker.com/r/kobotoolbox/kobocat for latest tags
kobocat.subdomainstring"kc"DNS subdomain name to serve the form server from
kobocat.uwsgi_confstringsee values.yamlUWSGI Config for KoboCat
kpi.extraEnvobjectsee values.yamlDictionary of env variables to pass
kpi.extraSecretEnvobject{}
kpi.image.namestring"kobotoolbox/kpi"kpi docker image name See https://hub.docker.com/r/kobotoolbox/kpi for list of tags
kpi.image.tagstring"2.022.24d"kpi docker image tag
kpi.subdomainstring"kobo"DNS subdomain to serve the main UI from
kpi.uwsgi_confstringsee values.yamlUWSGI Config for KPI
mongodbobjectsee values.yamlStandard MongoDB values See https://artifacthub.io/packages/helm/bitnami/mongodb for doc
mongodb.enabledbooltrueInstall MongoDB?
nginx.image.namestring"nginx"
nginx.image.tagstring"1.21"
postgresqlobjectsee values.yamlStandard postgres chart values See https://artifacthub.io/packages/helm/bitnami/postgresql for docs
postgresql.enabledbooltrueInstall Postgres?
postgresql.kobocatDatabasestring"kobocat"DB name for the form server
postgresql.kpiDatabasestring"koboform"DN name for the main Kobo UI
priorityClassstring"system-cluster-critical"
probes.enabledbooltrue
rediscache.architecturestring"standalone"
rediscache.enabledbooltrue
rediscache.usePasswordbooltrue
redismain.architecturestring"standalone"
redismain.enabledbooltrue
redismain.usePasswordbooltrue
shared.extraEnv.BACKUPS_DIRstring"/srv/backups"
shared.extraSecretEnvobject{}
shared.initContainerslist[]
shared.sidecarContainerslist[]
smtp.fromstring""SMTP "from" address
smtp.hoststring"smtp.gmail.com"SMTP Host
smtp.passwordstring""SMTP Password
smtp.portstring"587"SMTP port
smtp.tlsbooltrueUse TLS for SMTP?
smtp.userstring""SMTP Username
uwsgiExporter.enabledboolfalse
uwsgiExporter.logLevelstring"info"

Deploy kobotoolbox with OpenTenant

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