Self-hosted reference¶
How a tenant is laid out¶
Your environment, one tenant
├── Arena control plane CPU nodes: API, workers, Postgres, Pulsar, OpenObserve
├── GPU cluster the tenant's reserved GPUs, with the BYOC agent
├── Object store any S3-compatible bucket
└── Registry images mirrored from the release bundle
Your backend ──HTTPS──▶ tenant API
The control plane and the GPU cluster can be in the same Kubernetes cluster or in two clusters on the same network. Tenants share nothing with each other.
Requirements¶
Item |
Requirement |
|---|---|
Control plane cluster |
Kubernetes 1.28+, an ingress controller, a default StorageClass |
Control plane capacity per tenant |
1.96 vCPU and 4.14 GiB memory requested (Sizing), and 40 GiB of persistent volumes: Postgres 20 GiB, Pulsar 10 GiB and OpenObserve 10 GiB |
GPU cluster |
Kubernetes 1.28+, NVIDIA GPU Operator or device plugin, nodes labelled for each tenant, and a node with at least 20 GiB of memory, no GPUs and no |
GPUs |
Any NVIDIA GPU in the supported list; at least 2 per run for reinforcement learning that generates rollouts |
Object store |
S3-compatible API with path-style or virtual-host addressing, one bucket per tenant |
Registry |
OCI registry reachable from both clusters |
DNS and TLS |
One name per tenant for the API, and a wildcard under it for deployments ( |
Operator machine |
|
Supported hardware¶
Training and serving run on NVIDIA GPUs, so every tenant needs real NVIDIA GPUs. The control plane needs none: it runs on ordinary CPU nodes and requests 1.96 vCPU and 4.14 GiB of memory per tenant, plus 0.25 vCPU and 512 MiB while the install and upgrade Jobs run (Sizing).
Arena supports the NVIDIA GPUs in its GPU catalogue that have compute capability 8.0 or newer (Ampere and later), on amd64 or arm64 hosts. Training needs that capability for bf16 and FlashAttention 2, and Arena sizes every run from the catalogue’s figures for the GPU. The bundle contains amd64 and arm64 images, and Kubernetes picks the right one.
Architecture |
GPUs |
|---|---|
Blackwell |
GB300 (arm64 Grace host), B300, B200, RTX PRO 6000 Blackwell Server Edition, RTX 6000 Blackwell Server Edition |
Hopper |
H200, H100 80GB |
Ada Lovelace |
L40S, L4, RTX 6000 Ada Generation |
Ampere |
A100 80GB, A100 40GB, A10G |
Reinforcement learning that generates its own rollouts (GRPO, CISPO, GSPO, LLM PPO and LLM REINFORCE on a language environment) needs at least 2 GPUs per run: one trains and one runs vLLM to generate. Submit refuses fewer, and /resources lists no smaller count for these algorithms. SFT and DPO train on one GPU.
Rollout RL also needs the two GPUs to read each other’s memory directly, over NVLink or PCIe peer-to-peer. On release 4.8 (ML bundle 60.0), a run on GPUs without it fails a few minutes after it starts, with LoRA sync needs NVLink or PCIe P2P in its driver log. AWS L4 (g6), L40S (g6e) and A10G (g5) instances don’t offer peer-to-peer, so on those, run SFT and DPO only until a release with the fallback weight sync. Submit doesn’t check this yet.
Tested with the self-hosted install so far (November 2026): SFT on NVIDIA L4 on AWS, on a 4-GPU g6.12xlarge node. GRPO on the same node failed for lack of peer-to-peer, as above. The other GPUs are sized from the catalogue but haven’t yet run a tenant job. The examples in these pages use B300 nodes.
Values¶
Install the chart as release arena. Tenant keys go under arena-platform: in the values file; the bundled dependencies take the top-level keys in the second table. Defaults are in values.yaml inside the chart, and values-example-tenant.yaml in the bundle is a starting point. The example also carries release pins that this table doesn’t list: appVersion, image.repository, images.* with their digests, onPrem.image.tag, onPrem.provisioner.image.tag and the validator tags under onPrem.images. Keep them as the release sets them. Some name AgileRL’s registry (for example onPrem.images.trainImage); image.registryOverride rewrites that host to your mirror, so nothing pulls from AgileRL.
Under arena-platform::
Key |
Required |
Description |
|---|---|---|
|
yes |
Tenant name. Used for the organisation. |
|
yes |
DNS name of the tenant API. Deployments get names under it, and the GPU cluster calls the API at |
|
yes |
Registry the bundle was mirrored to. Replaces the registry of every image the tenant runs, including the bundled Postgres and Pulsar and the images Arena starts on the GPU cluster. |
|
no |
Image pull Secrets for the registry. |
|
yes |
Object store URL. |
|
yes |
Tenant bucket. |
|
no |
Path inside the bucket for the control plane’s objects. Default |
|
no |
Region name the store expects. Default |
|
no |
Path-style addressing. Default |
|
yes |
Secret with |
|
no |
Bucket GPU workers prefetch base model weights from before a job starts. A Hugging Face id |
|
no |
Path inside |
|
no |
Run Postgres in the namespace. Default |
|
if not bundled |
External Postgres. The Secret holds |
|
yes |
Ingress class for the API and deployments. |
|
yes |
TLS Secret for |
|
no |
PEM CA bundle, for private CAs. The control plane, the agent and its validators, and training and inference pods trust it for the API and S3. Each CA needs key usage |
|
yes |
Name for the tenant’s GPU cluster. |
|
yes |
Labels selecting the tenant’s GPU nodes. Every resource class and the agent’s pods use it. |
|
no |
Tolerations for the agent’s pods. Training and inference pods don’t get them. |
|
yes, for GPU classes |
GPU type of the tenant’s nodes, for example |
|
no |
Resources the tenant trains and deploys on. Each entry has |
|
yes, from |
The training image and the inference image tag of the release’s ML bundle. Both images are in the bundle; |
|
no |
Override requests and limits per component, for example |
|
no |
Extra hosts the self-check accepts, for an external Pulsar or OpenObserve. |
|
no |
Mint a new API key on this upgrade. Default |
|
no |
With |
|
no |
Platform fee in USD for each hour a training run runs on the tenant’s GPU cluster, whatever its node count. It is debited from the organisation’s wallet with the run’s other costs. Default |
|
no |
Platform fee in USD for each hour a deployment is up on the tenant’s GPU cluster, whatever its node count. Default |
|
no |
Skip bootstrap, for restores. Default |
With postgres.bundled: false, the postgres.external.* values replace the bundled database for the API, the workers and the migration Job. postgres.external.database defaults to arena, and postgres.external.port to 5432. Give an external Postgres a max_connections of at least 300, as the bundled one has: during an upgrade the old and new pods run together and can open up to 242 connections.
Top level:
Key |
Default |
Description |
|---|---|---|
|
|
Set to the mirrored repository, for example |
|
|
|
|
empty |
For a separate GPU cluster: a name both clusters resolve to the Pulsar Service. |
|
|
Bundled Postgres volume. |
|
|
Bundled Postgres connection limit. |
|
|
Bundled Pulsar and OpenObserve volumes. |
Commands¶
Operator commands run in the API pod: kubectl -n <namespace> exec deploy/arena-api -- /usr/app/arena-cli ….
Command |
Does |
|---|---|
|
Checks every dependency; fails if any configured endpoint is outside the tenant, or if a GPU cluster’s agent reports an error or has stopped reporting. With |
|
GPU cluster state, GPUs, agent version, time since the agent’s last contact, running and queued jobs |
|
End-to-end test through the partner API with its own key, which expires within 24 hours: dataset, SFT with LoRA (20 steps by default), checkpoint, metrics, export with sha256 checks, resume and stop, plus a deployment with |
|
Adds a base model from the tenant bucket |
|
Removes a base model from the list |
The chart runs two Jobs after every install and upgrade:
Job |
Runs |
Notes |
|---|---|---|
|
|
Creates the organisation, API key, cluster registration and resource classes. The cluster can serve the models it trains. Safe to repeat. Every run writes the release’s agent and validator images into |
|
|
A failure fails the install or upgrade. A GPU cluster whose agent has stopped reporting is a warning. |
Secrets¶
Created by the install in the tenant namespace:
Secret |
Holds |
|---|---|
|
The tenant’s API key ( |
|
Agent chart values ( |
|
Encryption key for organisation secrets. Back it up; without it, stored secrets can’t be read after a restore. |
|
Bundled Postgres |
|
OpenObserve root user |
|
The API’s credentials for OpenObserve |
arena-secrets-key, arena-postgres, arena-openobserve-root and arena-o2-runtime are generated on first install, read back on every upgrade and kept on uninstall. If you manage tenants with Argo CD or helm template, create these four before the first sync: generation reads the cluster, which a template render can’t, and the chart leaves alone a Secret with one of these names that it didn’t create.
Created by you:
Secret |
Namespace |
Holds |
|---|---|---|
Store Secret ( |
tenant |
|
Store Secret, same name |
agent, on the GPU cluster |
|
TLS Secret ( |
tenant, and the same name in the agent namespace |
Certificate for |
|
agent |
|
Network¶
All traffic stays inside your environment. These are the connections a tenant makes:
From |
To |
Port |
Purpose |
|---|---|---|---|
Your backend |
API ( |
443 |
Partner API |
Your backend |
Deployments ( |
443 |
Inference |
Agent |
API ( |
443 |
Desired state, status |
API |
OpenObserve |
5080 |
Metric and log queries |
Training pods on their own broker |
Their job’s Ray head |
6650 |
That job’s message broker |
Training pods on their own broker |
Agent (API relay) |
443 |
Job commands and metric names |
Training pods without their own broker |
Pulsar |
6650 |
The bundled broker the job still connects to. Nothing reads it: a stop is a Ray job stop, and metric names are not recorded |
Training pods |
Agent ( |
443 |
Metrics and logs (OTLP gRPC) |
Agent |
OpenObserve |
5081 |
Training metrics and logs, sent with the ingest user’s token |
Training and inference pods, API |
Object store |
443 |
Datasets, models, checkpoints |
Both clusters |
Registry |
443 |
Images |
Pulsar’s admin port (8080) stays inside the control plane namespace. The token in the agent values is an admin credential on OpenObserve gRPC port 5081, and that port should not be exposed beyond the agent.
When the GPU cluster is a separate Kubernetes cluster, expose Pulsar and OpenObserve to it with pulsar.service.type and openobserve.service.type (LoadBalancer or NodePort), and set pulsar.advertisedAddress to a name both clusters resolve: Pulsar clients connect to the address the broker returns, not the one they first dialled. In a single cluster, no extra exposure is needed.
Sizing¶
Requests per tenant control plane, with the bundled databases:
Component |
CPU |
Memory |
|---|---|---|
API |
0.2 |
768 MiB |
Worker |
0.1 |
128 MiB |
Cron scheduler |
0.1 |
256 MiB |
Storage service |
0.05 |
64 MiB |
Model memory planner |
0.2 |
384 MiB |
Pulsar standalone (heap 512 MiB) and its bootstrap sidecar |
0.51 |
1040 MiB |
OpenObserve |
0.25 |
512 MiB |
Postgres |
0.5 |
1 GiB |
Total |
1.91 |
4.08 GiB |
These are the chart’s default requests. An idle tenant uses about 0.2 vCPU and 2 GiB. The install and upgrade Jobs add 0.25 vCPU and 512 MiB while they run. Every pod sets requests and limits; the defaults are in the chart’s values.yaml. Change them per component with arena-platform.resources.<component>, and for Postgres, Pulsar and OpenObserve with postgres.resources, pulsar.resources and openobserve.resources.
The GPU cluster runs the BYOC agent and its environment and reward function validators, which request about 0.4 vCPU and 1.6 GiB together, plus the pods of running jobs and deployments. Every validation of the tenant’s environments, reward functions, datasets and models runs in those validators, next to the tenant’s data.
Supported models¶
The catalogue of models a tenant can register, and how to print it, is in Base models.
Errors¶
The API’s error codes and what to do about each are in Troubleshooting.
Data kept by a tenant¶
Data |
Where |
|---|---|
Organisations, users, experiments, deployments, keys, registered models |
Tenant Postgres |
Datasets, base models, checkpoints, exported metrics |
Tenant bucket |
Live metrics and logs |
Tenant OpenObserve |
Job commands |
Tenant Postgres |
Nothing is stored or sent anywhere else.