Helm chart for Platforma on Kubernetes. Jobs are scheduled through Kueue and AppWrapper.
This file is the chart reference. Concepts and step-by-step guides are on docs.platforma.bio: architecture, Kubernetes overview, existing cluster, after installation. Cloud installers: AWS EKS and GCP GKE.
helm install platforma oci://ghcr.io/milaboratory/platforma-helm/platforma \
-n platforma -f your-values.yaml| Requirement | Version / note |
|---|---|
| Kubernetes | 1.31+ (chart kubeVersion: >=1.31.0-0) |
| Helm | 3.12+ |
| Kueue | 0.16.1+ |
| AppWrapper | v1.2.3-milab.1, the MiLaboratories build. Upstream v1.2.3 is not enough: it ignores maxConcurrentReconciles and lacks the admission grace-period fix. |
| Workspace storage | RWX filesystem (EFS, FSx for Lustre, Filestore, NFS). Block storage (EBS, PD) is not supported. |
| Main storage | S3, S3-compatible storage, or GCS bucket |
| License | Key from MiLaboratories |
Steps 1-4 use values files from this repository. Clone it or download them from GitHub.
kueue-values.yaml turns on the AppWrapper integration and feature gate that Platforma needs, and sets controller resources. Nothing in it is AWS-specific: use it on any cluster.
helm install kueue oci://registry.k8s.io/kueue/charts/kueue \
--version 0.16.1 \
-n kueue-system --create-namespace \
-f infrastructure/aws/cloudformation/kueue-values.yamlInstall the MiLaboratories build of AppWrapper: upstream v1.2.3 plus fixes for random job failures ("MissingComponent: Only found 0 deployed components") and for a burst of jobs. The fixes are listed in MILAB.md.
kubectl apply --server-side -f https://github.com/milaboratory/appwrapper/releases/download/v1.2.3-milab.1/install.yamlThen set the controller config: 8 reconcile workers, and 5 minutes for the pods of a job to start (the default is 1 minute). The controller reads its config only at start, so restart it.
kubectl apply --server-side --force-conflicts -f - <<'EOF'
apiVersion: v1
kind: ConfigMap
metadata:
name: appwrapper-operator-config
namespace: appwrapper-system
data:
config.yaml: |
controllerManager:
health:
bindAddress: ":8081"
metrics:
bindAddress: ":8443"
leaderElection: true
appwrapper:
maxConcurrentReconciles: 8
faultTolerance:
admissionGracePeriod: 300000000000 # 5m, in nanoseconds
EOF
kubectl rollout restart deployment/appwrapper-controller-manager -n appwrapper-systemThe AWS and GCP installers make the same changes. They also pin the controller image by digest and raise its memory. See APPWRAPPER_IMAGE in the CloudFormation template.
kubectl create namespace platforma
# License (required)
kubectl create secret generic platforma-license -n platforma \
--from-literal=MI_LICENSE="your-license-key"
# Master secret (required): encrypts secrets in the DB, signs sessions and resource signatures.
# Rotating it invalidates all of them.
kubectl create secret generic platforma-master-secret -n platforma \
--from-literal=master-secret="$(openssl rand -base64 32)"
# htpasswd file (only if you use auth.htpasswd.secretName)
kubectl create secret generic platforma-htpasswd -n platforma \
--from-file=htpasswd=./htpasswdThe chart checks that every referenced Secret exists and has the expected keys. validation.checkSecrets: false skips the check.
AWS EKS (EFS workspace, S3 main storage):
helm install platforma oci://ghcr.io/milaboratory/platforma-helm/platforma \
-n platforma \
-f infrastructure/aws/cloudformation/values-aws-s3.yaml \
--set auth.htpasswd.secretName=platforma-htpasswd \
--set storage.workspace.efs.fileSystemId=fs-0123456789abcdef \
--set storage.main.s3.bucket=my-platforma-bucket \
--set storage.main.s3.region=eu-central-1GCP GKE (Filestore workspace, GCS main storage): there is no standalone values file. The GCP installer renders the values. A manual install needs environment: gcp, storage.workspace.filestore.{enabled,ip,shareName}, storage.main.type: gcs and storage.main.gcs.{bucket,projectId,serviceAccount}.
Generic NFS (S3 main storage):
helm install platforma oci://ghcr.io/milaboratory/platforma-helm/platforma \
-n platforma \
--set environment="" \
--set auth.htpasswd.secretName=platforma-htpasswd \
--set storage.workspace.nfs.enabled=true \
--set storage.workspace.nfs.server=nfs.example.com \
--set storage.workspace.nfs.path=/exports/platforma \
--set storage.main.type=s3 \
--set storage.main.s3.bucket=my-bucket \
--set storage.main.s3.region=eu-central-1All options with comments: values.yaml.
The chart fails the render when one of these is missing.
| Value | Description |
|---|---|
environment |
aws, gcp or "" (vanilla Kubernetes). aws creates the gp3 StorageClass (default), efs-platforma when storage.workspace.efs.fileSystemId is set, and a network-scratch class when scratch storage is configured. gcp and "" create none. |
license.secretName |
Default platforma-license, key MI_LICENSE. |
masterSecret.secretName |
Default platforma-master-secret, key master-secret. |
| Auth | One of auth.htpasswd.credentials, auth.htpasswd.secretName, auth.ldap.server, auth.sso.issuer, auth.providers. See Authentication. |
storage.workspace.* |
Exactly one RWX workspace option. |
storage.main.type |
s3 or gcs, plus that type's bucket settings. gcs requires environment: gcp and storage.main.gcs.{bucket,projectId,serviceAccount}. s3 is not allowed with environment: gcp. |
| Area | Type | Values | Description |
|---|---|---|---|
| Database | RWO | storage.database (default 20Gi) |
RocksDB state. Use fast SSD (gp3, pd-ssd). |
| Workspace | RWX | storage.workspace |
Shared job data, mounted by the server and all job pods. |
| Main | S3/GCS | storage.main |
Results. The Desktop App downloads them from the bucket directly, so only the gRPC endpoint needs ingress. |
Configure exactly one option:
| Option | What the chart creates | Use case |
|---|---|---|
storage.workspace.efs |
Dynamic PVC on StorageClass efs-platforma (EFS access points, uid/gid 1010) |
Recommended on EKS |
storage.workspace.fsxLustre |
Static PV + PVC (FSx CSI driver) | High-throughput AWS workloads |
storage.workspace.filestore |
Static NFS PV + PVC (ip, shareName, path) |
GCP Filestore |
storage.workspace.nfs |
Static NFS PV + PVC (server, path) |
Any NFS server |
storage.workspace.pvc |
PVC on any StorageClass (storageClass, size, accessMode) |
Other RWX CSI drivers |
storage.workspace.existingClaim |
Nothing, uses your PVC | Pre-created RWX PVC |
The chart creates the efs-platforma StorageClass only when environment: aws and storage.workspace.efs.fileSystemId are set.
Platforma runs as non-root UID/GID 1010. The workspace must be writable by this user.
| Workspace option | How ownership is set |
|---|---|
efs |
EFS access point enforces uid/gid 1010. Nothing to do. |
fsxLustre, filestore, nfs, pvc (with chownOnCreate: true, the default) |
Init container chown-workspace runs chown -R 1010:1010 when the root is not owned by 1010:1010. Restarts skip it. A first start on a large volume can be slow. |
existingClaim |
You make the volume writable by 1010. |
FSx for Lustre needs the lustre-client package on all nodes. The EKS AL2023 AMI does not include it. See the AWS infrastructure guide.
Measured write throughput on AWS:
| Storage | Write throughput | Notes |
|---|---|---|
| EFS | 30-45 MB/s | Consistent, scales with file count |
| FSx Lustre | 65-275 MB/s | Varies by instance type |
storage.main.type |
Storage | Notes |
|---|---|---|
s3 |
AWS S3 or S3-compatible storage | endpoint for a custom endpoint, externalEndpoint when the Desktop App reaches it by another URL, noDataIntegrity: true for storage without SHA256 integrity checks (Ceph, GCS through its S3 API). secretRef only without IRSA. |
gcs |
Google Cloud Storage | Workload Identity, environment: gcp only |
Authentication is mandatory.
| Method | Values |
|---|---|
| htpasswd, inline | auth.htpasswd.credentials (chart creates the Secret, bcrypt hashes) |
| htpasswd, existing Secret | auth.htpasswd.secretName (key htpasswd, create with htpasswd -nB <user>). Not together with credentials. |
| LDAP | auth.ldap.server plus direct bind or search bind |
| SSO (OIDC) | auth.sso.issuer, auth.sso.clientId |
| Several providers (backend 4.3.0+) | auth.providers. Cannot be combined with the blocks above. See multiprovider-auth.md. |
To move an LDAP instance to SSO, see ldap-to-sso-migration.md.
LDAP has two modes. Direct bind sets bindDN: "cn=%u,ou=users,dc=example,dc=com" (%u = login). Search bind:
auth:
ldap:
server: "ldap://ldap.example.com:389"
searchRules:
- "(uid=%u)|ou=users,dc=example,dc=com" # <filter>|<base DN>, tried in order
searchUser: "cn=readonly,dc=example,dc=com"
searchPasswordSecretRef:
name: "ldap-search-password"
key: "password"TLS options (startTLS, tls.caSecretRef, tls.clientCertSecretRef, tls.insecureSkipVerify) and SSO fields are in the auth section of values.yaml.
| Service account | Default name | Purpose | Override |
|---|---|---|---|
| Server | <release>-platforma |
Platforma pod: manages jobs, reads secrets | serviceAccount.name |
| Jobs | <release>-platforma-jobs |
Job pods. They need no cloud rights: the backend moves all data. The installers give this account none | jobServiceAccount.name |
To use a pre-existing account, set serviceAccount.create: false and serviceAccount.name.
Create an IAM role (AWS) or GCP service account that trusts the Kubernetes service account. Then set serviceAccount.annotations (and jobServiceAccount.annotations only if your jobs need cloud access of their own):
| Cloud | Annotation | Example value |
|---|---|---|
| AWS (IRSA) | eks.amazonaws.com/role-arn |
arn:aws:iam::123456789:role/platforma-server |
| GCP (Workload Identity) | iam.gke.io/gcp-service-account |
platforma-server@project.iam.gserviceaccount.com |
| Port | Service | Purpose |
|---|---|---|
| 6345 | main | gRPC API. The Desktop App connects here. |
| 9090 | metrics (always created) | Prometheus metrics |
| 9091 | debug | pprof, DB inspection |
The chart renders Kubernetes Ingress resources from ingress and additionalIngress (className, host, tls, annotations). It does not render Gateway API resources. The GCP installer creates its Gateway/HTTPRoute outside the chart (static IP, Cloud DNS, Certificate Manager). To use GKE Gateway with the chart alone, keep ingress.enabled: false and point your own HTTPRoute at the platforma Service.
The AWS Load Balancer Controller creates one ALB per Ingress. Ingresses with the same group.name share one ALB, as host-based rules. All members of a group must use the same scheme.
ingress:
enabled: true
className: alb
host: "platforma.example.com"
annotations:
alb.ingress.kubernetes.io/group.name: "shared"
alb.ingress.kubernetes.io/group.order: "100"
alb.ingress.kubernetes.io/scheme: internet-facing
alb.ingress.kubernetes.io/target-type: ip
alb.ingress.kubernetes.io/backend-protocol-version: GRPC
alb.ingress.kubernetes.io/healthcheck-path: /grpc.health.v1.Health/Check
alb.ingress.kubernetes.io/success-codes: "0"
alb.ingress.kubernetes.io/listen-ports: '[{"HTTPS": 443}]'
alb.ingress.kubernetes.io/certificate-arn: "arn:aws:acm:..."
alb.ingress.kubernetes.io/ssl-policy: ELBSecurityPolicy-TLS13-1-2-2021-06Set className: nginx and the annotation nginx.ingress.kubernetes.io/backend-protocol: "GRPC". TLS as in the traefik example below.
traefik (the k3s default) talks HTTP/2 cleartext (h2c) to the backend:
ingress:
enabled: true
className: traefik
host: "platforma.example.com"
tls:
enabled: true
secretName: "platforma-tls"
annotations:
traefik.ingress.kubernetes.io/router.entrypoints: websecure
app:
serviceAnnotations:
traefik.ingress.kubernetes.io/service.serversscheme: h2ckubectl port-forward svc/platforma -n platforma 6345:6345app.serviceAppProtocols sets appProtocol per Service port (keys grpc, http). grpc: "kubernetes.io/h2c" is safe everywhere: controllers that do not read it ignore it.
| Component | Reads appProtocol? |
What you actually use |
|---|---|---|
| AWS Load Balancer Controller (Ingress) | No | alb.ingress.kubernetes.io/backend-protocol-version: GRPC annotation |
| GKE Ingress (classic) | No | cloud.google.com/app-protocols annotation |
| NGINX Ingress | No | nginx.ingress.kubernetes.io/backend-protocol: GRPC annotation |
| Traefik 2.9+ Ingress | Yes | appProtocol alone is enough. Older versions need traefik.ingress.kubernetes.io/service.serversscheme: h2c |
| GKE Gateway (Gateway API) | Yes | appProtocol is the only switch |
| In-cluster meshes (Istio, Linkerd) | Yes | Protocol detection |
| Environment | Recommended |
|---|---|
| AWS with ALB Controller | ALB + group.name (ACM certs, WAF) |
| AWS with nginx/traefik | Existing controller |
| GKE, chart only | nginx or traefik, with appProtocol: kubernetes.io/h2c |
| GKE with this repo's GCP installer | GKE Gateway from Terraform. ingress.enabled stays false |
| k3s / bare metal | traefik (ships with k3s) |
| Development | Port-forward |
| File | Contents |
|---|---|
platforma.log |
Ordinary log records |
treechangelog.log |
Tree changelog: per-transaction change summaries only. Never streamed: at production load they are hundreds of JSON reports a second. Correlate with ordinary records by timestamp and txID. |
persistence.enabled: true (default) |
persistence.enabled: false |
|
|---|---|---|
| Ordinary log | /var/log/platforma/platforma.log on a dedicated PVC |
container stdout (the image entrypoint sets PL_LOG_DESTINATION=stream://stdout). No file. |
| Tree changelog | /var/log/platforma/treechangelog.log on the same PVC |
/data/main/log/treechangelog.log on an emptyDir, wiped on every pod restart |
To override the ordinary log destination, set PL_LOG_DESTINATION or add --log-dst=... to app.extraArgs. The changelog takes a file path via --log-tree-changelog-path.
Rotated files are gzipped (1Gi to ~92Mi, measured in production). Defaults on the 30Gi volume (app.logging.persistence.size; the keys below are under app.logging):
| Stream | Values (default) | On disk | History |
|---|---|---|---|
| Ordinary log | persistence.rotation.size (1Gi), .count (10) |
1Gi + 10 x 92Mi ~= 1.9Gi | over a year (1Gi fills in ~41 days) |
| Tree changelog | treeChangelog.maxSize (1Gi), .maxBackups (200) |
1Gi + 200 x 92Mi ~= 19.4Gi | ~4 days at ~34 MiB/min under real block load |
Raise maxBackups for longer changelog history and check that it still fits the volume. treeChangelog.enabled: false stops building the summaries, so it also saves the per-transaction cost.
Metrics are on port 9090 (fixed). The ClusterIP metrics Service is always created.
app:
monitoring:
annotations: # Prometheus scraping
prometheus.io/scrape: "true"
prometheus.io/port: "9090"
gkeMonitoring: # PodMonitoring for Google Managed Prometheus
enabled: true
interval: 30sThe debug API runs on port 9091 and binds to 127.0.0.1 by default. Reach it with port-forward.
app:
debug:
enabled: true # binds on 0.0.0.0, sets log level to debug, keeps job workdirs for 1h| Mode | Description |
|---|---|
dedicated (default) |
Chart creates the Kueue resources |
shared |
Chart uses externally managed cluster resources and creates LocalQueues |
| Resource | Scope | Dedicated (primary) | Dedicated (secondary) | Shared |
|---|---|---|---|---|
| ResourceFlavors | Cluster | Created | Skipped | External |
| ClusterQueues | Cluster | Created | Skipped | External |
| WorkloadPriorityClasses | Cluster | Created | Skipped | External |
| LocalQueues | Namespace | Created | Created | Created |
| Job template ConfigMap | Namespace | Created | Created | Created |
Several Platforma releases can share one set of ClusterQueues and node pools. All must use the same clusterResourceName (default: the release fullname).
# First install: creates the cluster-scoped resources
kueue:
mode: dedicated
dedicated:
clusterResourceName: "platforma"
---
# Further installs
kueue:
mode: dedicated
dedicated:
createClusterResources: false
clusterResourceName: "platforma"Each install creates its own LocalQueues. Jobs from all namespaces compete in the shared ClusterQueues. Uninstall the primary install (createClusterResources: true) last.
Queue quotas (kueue.dedicated.resources) cap total concurrent usage. Per-job caps are kueue.maxJobResources (default 64 CPU, 256Gi). The chart passes them to the backend as --runner-max-cpu-request and --runner-max-memory-request: a larger request is reduced to the cap, and the job may then run out of memory. Keep the caps within the largest node's allocatable.
Create the ClusterQueues, ResourceFlavors and WorkloadPriorityClasses outside the chart. All fields below are required:
kueue:
mode: shared
shared:
clusterQueues:
ui: "my-ui-clusterqueue"
batch: "my-batch-clusterqueue"
workloadPriorityClasses:
uiTasks: "my-ui-priority"
high: "my-high-priority"
normal: "my-normal-priority"
low: "my-low-priority"4 fixed queues go to 2 node pools:
ui-tasks (pri:1000) ──► UI LocalQueue ──► UI ClusterQueue ──► UI Nodes
heavy (pri:1000) ─┐
medium (pri:100) ─┼► Batch LocalQueue ──► Batch ClusterQueue ──► Batch Nodes
light (pri:10) ─┘
Priority within the batch queue: heavy > medium > light.
dataSources mounts external read-only data (reference genomes, sequencing archives). Each entry shows in the Desktop App as a data library. Types: s3, gcs, pvc.
AWS S3 with IRSA (IAM role on the service account, no credentials):
dataSources:
- name: "sequencing-archive"
type: s3
s3:
bucket: "company-sequencing"
region: "eu-central-1"S3 or S3-compatible storage with explicit credentials:
dataSources:
- name: "references"
type: s3
s3:
bucket: "references"
region: "us-east-1"
endpoint: "https://s3.example.com" # omit for AWS S3
externalEndpoint: "https://s3.example.com" # URL for Desktop App direct access, if different
noDataIntegrity: true # storage without SHA256 integrity checks (Ceph, GCS S3 API)
secretRef:
name: "references-creds"
accessKeyField: "access-key" # default
secretKeyField: "secret-key" # defaultkubectl create secret generic references-creds -n platforma \
--from-literal=access-key=<ACCESS_KEY> \
--from-literal=secret-key=<SECRET_KEY>GCS takes gcs.bucket, gcs.projectId, gcs.prefix, gcs.serviceAccount (Workload Identity). PVC takes pvc.existingClaim.
app.extraArgs passes extra backend flags. Examples are in values.yaml.
Backend 4.2.0+ runs job images only from trusted registries. The default Platforma registry and --default-docker-registry / --docker-rewrite targets are always trusted. For other registries, add --trusted-docker-registry=<host> (matched by host, repeatable).
helm upgrade platforma oci://ghcr.io/milaboratory/platforma-helm/platforma \
--version <chart-version> -n platforma -f your-values.yamlThe deployment uses strategy: Recreate. Running jobs are not interrupted. For backups and the update procedure, see backups-and-updates.
helm uninstall platforma -n platformaThe database, logs and workspace PVCs carry helm.sh/resource-policy: keep and stay. Delete them explicitly:
kubectl delete pvc -n platforma -l app.kubernetes.io/instance=platformakubectl get pods -n kueue-system # Kueue running?
kubectl get pods -n appwrapper-system # AppWrapper running?
kubectl get clusterqueues # Queue status
kubectl get workloads -n platforma # Workload admissionkubectl get svc -n platforma
kubectl logs -n platforma -l app.kubernetes.io/name=platforma --tail=50Workspace must be RWX (ReadWriteMany). Block storage (EBS, PD) is not supported.
Proprietary - MiLaboratories