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
| Name | Description | Value |
|---|---|---|
settings | The settings to use for substra (prod or dev) | prod |
config | The configuration to use for substra | {} |
organizationName | Current organization name | owkin |
DataSampleStorageInServerMedia | If 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.enabled | Run the init container injecting the private CA certificate | false |
privateCa.image.repository | Private CA injector image | substra/substra-backend-ca-cert-injector |
privateCa.image.tag | Private CA injector tag | nil |
privateCa.image.pullPolicy | Private CA injector pull policy | IfNotPresent |
privateCa.image.pullSecrets | Specify image pull secrets | [] |
privateCa.image.registry | The registry to pull the CA Cert Injector image | ghcr.io |
privateCa.secret.name | Name of the Secret containing the private CA certificate | substra-private-ca |
privateCa.secret.data | Certificate to add in the Secret | nil |
privateCa.secret.fileName | Certificate filename in the Secret | private-ca.crt |
Server settings
| Name | Description | Value |
|---|---|---|
server.replicaCount | Number of server replicas | 1 |
server.defaultDomain | The hostname and port of the backend. This address will be used as the assets storage_address field | localhost |
server.subpath | The subpath under which the API is served | "" |
server.commonHostDomain | The common host under which the backend and frontend are served | "" |
server.uwsgiProcesses | The number of uwsgi processes | 20 |
server.uwsgiThreads | The number of uwsgi threads | 10 |
server.allowImplicitLogin | Allow clients to get API tokens directly with username+password on the /api-token-auth/ endpoint (ie Client.login in the Substra SDK) | true |
server.allowLocalRequests | Allow 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.type | The 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.registry | Substra backend server image registry | ghcr.io |
server.image.repository | Substra backend server image repository | substra/substra-backend |
server.image.tag | Substra backend server image tag (defaults to AppVersion) | nil |
server.image.pullPolicy | Substra backend server image pull policy | IfNotPresent |
server.image.pullSecrets | Specify image pull secrets | [] |
server.podSecurityContext.enabled | Enable security context | true |
server.podSecurityContext.runAsUser | User ID for the pod | 1001 |
server.podSecurityContext.runAsGroup | Group ID for the pod | 1001 |
server.podSecurityContext.fsGroup | FileSystem group ID for the pod | 1001 |
server.service.type | Kubernetes Service type | ClusterIP |
server.service.port | Server port | 8000 |
server.service.clusterIP | ClusterIP or None for headless service | "" |
server.service.loadBalancerIP | Load balancer IP if service type is LoadBalancer | "" |
server.service.loadBalancerSourceRanges | Addresses that are allowed when service is LoadBalancer | [] |
server.service.nodePort | Specify the nodePort value for the LoadBalancer and NodePort service types | "" |
server.service.externalIPs | A 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.
- Pick a serverConnect Hetzner, OVHcloud or AWS. The builder starts on Hetzner, the cheapest sample rate.
- Place the chartsubstra-backend is pinned at v26.15.3 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