substra-backend

by Substra

Helm chartv26.15.3App 1.0.1Verified publisher

Main package for Substra

About this chart

Substra Backend

Substra Backend is a component of Substra.

Prerequisites

  • Kubernetes 1.19+
  • If you want to enable GPU support, install the nvidia device plugin for kubernetes: https://github.com/NVIDIA/k8s-device-plugin or https://github.com/NVIDIA/gpu-operator

Upgrading dependencies

If you make changes to the versions of the external charts defined in Chart.yaml, you need to update the Chart.lock file by running:

helm dependency update

Changelog

See CHANGELOG.md

Upgrade

See UPGRADE.md

Parameters

Global Substra settings

NameDescriptionValue
settingsThe settings to use for substra (prod or dev)prod
configThe configuration to use for substra{}
organizationNameCurrent organization nameowkin
DataSampleStorageInServerMediaIf set to true, Datasamples which are registered by a "path" are kept on the "servermedias" volume. If set to false (default value), the datasample will be duplicated to MinIO.false
privateCa.enabledRun the init container injecting the private CA certificatefalse
privateCa.image.repositoryPrivate CA injector imagesubstra/substra-backend-ca-cert-injector
privateCa.image.tagPrivate CA injector tagnil
privateCa.image.pullPolicyPrivate CA injector pull policyIfNotPresent
privateCa.image.pullSecretsSpecify image pull secrets[]
privateCa.image.registryThe registry to pull the CA Cert Injector imageghcr.io
privateCa.secret.nameName of the Secret containing the private CA certificatesubstra-private-ca
privateCa.secret.dataCertificate to add in the Secretnil
privateCa.secret.fileNameCertificate filename in the Secretprivate-ca.crt

Server settings

NameDescriptionValue
server.replicaCountNumber of server replicas1
server.defaultDomainThe hostname and port of the backend. This address will be used as the assets storage_address fieldlocalhost
server.subpathThe subpath under which the API is served""
server.commonHostDomainThe common host under which the backend and frontend are served""
server.uwsgiProcessesThe number of uwsgi processes20
server.uwsgiThreadsThe number of uwsgi threads10
server.allowImplicitLoginAllow clients to get API tokens directly with username+password on the /api-token-auth/ endpoint (ie Client.login in the Substra SDK)true
server.allowLocalRequestsAllow calls to the backend API from within the cluster and local addresses (for instance when multiple organization are in the same cluster, or using a cluster on your machine)false
server.updateStrategy.typeThe update strategy for the server deployment (defaults to Recreate). If set to RollingUpdate, the server might run into a race condition during upgrade, because the new pod tries to attach to a RWO PVC. Changing this value is not recommended.Recreate
server.image.registrySubstra backend server image registryghcr.io
server.image.repositorySubstra backend server image repositorysubstra/substra-backend
server.image.tagSubstra backend server image tag (defaults to AppVersion)nil
server.image.pullPolicySubstra backend server image pull policyIfNotPresent
server.image.pullSecretsSpecify image pull secrets[]
server.podSecurityContext.enabledEnable security contexttrue
server.podSecurityContext.runAsUserUser ID for the pod1001
server.podSecurityContext.runAsGroupGroup ID for the pod1001
server.podSecurityContext.fsGroupFileSystem group ID for the pod1001
server.service.typeKubernetes Service typeClusterIP
server.service.portServer port8000
server.service.clusterIPClusterIP or None for headless service""
server.service.loadBalancerIPLoad balancer IP if service type is LoadBalancer""
server.service.loadBalancerSourceRangesAddresses that are allowed when service is LoadBalancer[]
server.service.nodePortSpecify the nodePort value for the LoadBalancer and NodePort service types""
server.service.externalIPsA list of IP addresses for which nodes in the cluster will also accept traffic for this service

Deploy substra-backend with OpenTenant

Each tenant gets its own release of this chart, with its own namespace, secrets and domain. The builder below already has substra-backend 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 chartsubstra-backend is pinned at v26.15.3 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