toolhub

by joaquinito2051

Helm chartv1.1.27

Helm chart for Toolhub, a catalog of Wikimedia tools

About this chart

toolhub

Helm chart for Toolhub, a catalog of Wikimedia tools

Homepage: https://meta.wikimedia.org/wiki/Toolhub

Maintainers

NameEmailUrl
Bryan Davis[email protected]https://wikitech.wikimedia.org/wiki/User:BryanDavis

Requirements

RepositoryNameVersion
https://helm.elastic.coelasticsearch6.8.18

Values

KeyTypeDefaultDescription
app.portint8000
common_imagesobject{"mcrouter":{"exporter":"prometheus-mcrouter-exporter:latest","mcrouter":"mcrouter:latest"}}Versions for common sidecar images
config.private.DB_PASSWORDstring"snakeoil"MariaDB database password
config.private.DJANGO_SECRET_KEYstring"snakeoil"Django core setting. Used for session signing and as default crypto key
config.private.WIKIMEDIA_OAUTH2_SECRETstring"67e66d1131ed22dc1c79304cae27d04880b16293"OAuth2 grant private key. The default value is deliberately public and tied to http://toolhub.test/ which can only be used in local testing. https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/11dec83f263af1b9f480488512556cb1
config.public.CACHE_BACKENDstring"django_prometheus.cache.backends.locmem.LocMemCache"
config.public.CACHE_LOCATIONstring""
config.public.CURL_CA_BUNDLEstring""CA override for intercepting https proxy
config.public.DB_ENGINEstring"django.db.backends.mysql"
config.public.DB_HOSTstring"localhost"
config.public.DB_NAMEstring"toolhub"
config.public.DB_PORTint3306
config.public.DB_USERstring"toolhub"
config.public.DJANGO_ALLOWED_HOSTSstring"*"Comma-separated list of Host/X-Forwarded-Host header allowed values
config.public.DJANGO_DEBUGboolfalseEnable development mode debug features (error pages, etc)
config.public.DJANGO_SETTINGS_MODULEstring"toolhub.settings"Name of the settings module for Django to load
config.public.ES_DSL_AUTOSYNCbooltrue
config.public.ES_DSL_PARALLELbooltrue
config.public.ES_HOSTSstring"localhost:9200"
config.public.ES_INDEX_REPLICASint0
config.public.ES_INDEX_SHARDSint1
config.public.FIREFOX_DEVTOOL_HACKboolfalseLocal dev only hack. Needs DEBUG=True.
config.public.LOGGING_CONSOLE_FORMATTERstring"ecs"Log event formatter to use
config.public.LOGGING_FILE_FILENAMEstring"/dev/null"'file' handler output file
config.public.LOGGING_HANDLERSstring"console"List of log handlers to enable
config.public.LOGGING_LEVELstring"WARNING"Base log level to emit
config.public.LOG_REQUEST_ID_HEADERstring"HTTP_X_REQUEST_ID"HTTP header to extract tracing id from
config.public.OUTGOING_REQUEST_ID_HEADERstring"X-Request-ID"Header for propigating trace id to services
config.public.REQUEST_ID_RESPONSE_HEADERstring"X-Request-ID"Header for returning trace id to client
config.public.REQUIRE_HTTPSboolfalseEnsure TLS enabled and restrict cookies to https
config.public.SOCIAL_AUTH_PROXIESstring""HTTP proxy settings to use with OAuth client requests. Toolhub expects value to be semicolon separated list of key=value pairs. See also https://docs.python-requests.org/en/master/user/advanced/#proxies
config.public.SSL_CANONICAL_HOSTstring"toolhub.wikimedia.org"Https redirect hostname
config.public.STATIC_ROOTstring"/srv/app/staticfiles"
config.public.URLLIB3_DISABLE_WARNINGSboolfalseDisable warnings from urllib3 about unverfied TLS connections
config.public.WIKIMEDIA_OAUTH2_KEYstring"11dec83f263af1b9f480488512556cb1"OAuth2 grant public key. The default value is tied to http://toolhub.test/ which can only be used in local testing. https://meta.wikimedia.org/wiki/Special:OAuthListConsumers/view/11dec83f263af1b9f480488512556cb1
config.public.WIKIMEDIA_OAUTH2_URLstring"https://meta.wikimedia.org/w/rest.php"OAuth2 request base URL
config.public.http_proxystring""Outbound http request proxy
config.public.https_proxystring""Outbound https request proxy
config.public.no_proxystring""Outbound proxy exceptions
crawler.concurrencyPolicystring"Forbid"Job concurrency policy
crawler.enabledbooltrueEnable CronJob for toolinfo url crawler
crawler.failedJobsHistoryLimitint1Number of failed finished jobs to keep
crawler.resourcesobject{"limits":{"cpu":1,"memory":"512Mi"},"requests":{"cpu":"200m","memory":"256Mi"}}Job initial and maximum resource limits
crawler.schedulestring"@hourly"Schedule for crawler job
crawler.successfulJobsHistoryLimitint3Number of successful finished jobs to keep
debugobject{"enabled":false,"ports":[]}Additional resources if we want to add a port for a debugger to connect to.
dockerobject{"pull_policy":"IfNotPresent","registry":"docker-registry.wikimedia.org"}Shared docker settings
elasticsearchobject{"enabled":false,"esJavaOpts":"-Xms512m -Xmx512m","minimumMasterNodes":1,"replicas":1,"resources":{"limits":{"cpu":"500m","memory":"1Gi"},"requests":{"cpu":"500m","memory":"512Mi"}},"roles":{"data":"true","ingest":"false","master":"true"}}Optional Elasticsearch single node cluster for use with minikube.
helm_scaffold_versionfloat0.3Version of scaffold used to create this chart
ingressobject{"enabled":false,"host":"toolhub.test"}Optional ingress for use with minikube.
jobsobject{"init_db":false}Optional one-time job to initialize and populate the database with demo data.
main_appobject{"args":[],"command":[],"image":"wikimedia/wikimedia-toolhub","limits":{"cpu":1,"memory":"512Mi"},"liveness_probe":{"tcpSocket":{"port":8000}},"port":8000,"readiness_probe":{"httpGet":{"path":"/healthz","port":8000}},"requests":{"cpu":"250m","memory":"128Mi"},"type":"default","version":"latest"}Shared app settings
main_app.imagestring"wikimedia/wikimedia-toolhub"Image name to pull from docker.registry
main_app.limitsobject{"cpu":1,"memory":"512Mi"}Hard pod resource limits
main_app.liveness_probeobject{"tcpSocket":{"port":8000}}Pod liveness check settings
main_app.portint8000Port exposed as a Service, also used by service-checker.
main_app.readiness_probeobject{"httpGet":{"path":"/healthz","port":8000}}Pod readiness check settings
main_app.requestsobject{"cpu":"250m","memory":"128Mi"}Initial pod resource limits
main_app.versionstring"latest"Image version to pull from docker.registry
mcrouterobject{"cross_cluster_timeout":100,"cross_region_timeout":250,"enabled":false,"num_proxies":5,"probe_timeout":60000,"resources":{"limits":{"cpu":1,"memory":"200Mi"},"requests":{"cpu":"200m","memory":"100Mi"}},"route_prefix":"local/toolhub","routes":[{"failover":true,"pool":"test-pool","route":"/local/toolhub","type":"standalone"}],"timeouts_until_tko":3,"zone":"local"}Mcrouter sidecar configuration
mcrouter.enabledboolfalseEnable Mcrouter
mcrouter.route_prefixstring"local/toolhub"Default route prefix. Should vary based on datacenter.
mcrouter.routeslist[{"failover":true,"pool":"test-pool","route":"/local/toolhub","type":"standalone"}]Routes to configure for mcrouter
mcrouter.zonestring"local"Zone of this deployment. Used to determine local/remote pools.
meshobject{"certs":{"cert":"snakeoil","key":"snakeoil"},"enabled":false,"public_port":4011,"telemetry":{"enabled":true,"port":9361},"upstream_timeout":"180.0s"}TLS terminating ingress configuration
monitoringobject{"enabled":true,"uses_statsd":false}Monitoring config
networkpolicyobject{"egress":{"enabled":false}}Networking settings
phpobject{"fcgi_mode":"unused"}Cruft needed for generated templates/deployment.yaml
resources.replicasint1Number of replicas to run in parallel
serviceobject{"deployment":"minikube","port":{"name":"http","nodePort":null,"port":8000,"targetPort":8000}}Service config
service.deploymentstring"minikube"Valid values are "production" and "minikube"
service.port.nodePortstringnilYou need to define this if service.deployment="production" is used.
service.port.portint8000Number of the port desired to be exposed to the cluster
service.port.targetPortint8000Number or name of the exposed port on the container

Autogenerated from chart metadata using helm-docs v1.14.2

Deploy toolhub with OpenTenant

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