Skip to content

ADR-0006: S3-compatible object storage in the cluster

Status: Accepted, amended 2026-10-01 (MinIO → Versity S3 Gateway)

Dataset Parquet files, staging manifests, preview samples and Forge bundles need an object store. The engine speaks S3 (object_store crate), so anything S3-compatible works.

Run an S3-compatible object store in the cluster: a single-node Versity S3 Gateway (versity/versitygw, posix backend, Apache-2.0) on a local volume on k3s-vps, next to flux-dataset and the ingress.

  • Buckets are top-level directories: flux-data (the lake) and flux-forge.
  • Root credentials come from the flux-objects-env secret; only Flux pods and run Jobs can reach it (NetworkPolicy).
  • Placement: the two nodes are ~30–200 ms apart over WireGuard. Key lookups read a Parquet page per request, so storage sits on the node that serves reads.

The MinIO community project was archived upstream: the repository is read-only and community images and binaries are no longer published (dl.min.io returns 410). Running an unmaintained storage server, or a third-party rebuild of it, isn’t a good basis for the platform’s data. Versity S3 Gateway is actively released, multi-arch, and is what local development already uses (scripts/dev-infra.sh), so the same backend is tested end to end (flux-exec s3_round_trip passes against the exact container configuration used in the cluster).

  • Single node, single disk: no erasure coding or replication. Backups are a separate job (design 12). Durability matches the rest of the cluster (enki is also single node).
  • Swapping backends (MinIO fork, Garage, SeaweedFS, cloud S3) needs only new endpoint and credentials.