Skip to main content

Workload manifest reference

To compare a specification with what the CLI displays, see saved Workload output and component mount output.

A workload YAML file contains one top-level spec object:

spec:
components:
- name: processor
mode: job
image: registry.dphi.space/tenant-a/example/image:v1
command: ["python", "/app/main.py"]
args: ["--input", "/data/input.bin"]
env:
- name: OUTPUT_PATH
value: /data/results/output.json
cpu: "0.5"
memory: "2"
gpuRequest: true
ports:
- name: http
port: 8080

The server rejects unknown fields.

Component fields​

FieldRequiredRules
nameYesUnique in the workload; 1–63 lowercase letters, numbers, or hyphens; starts and ends with a letter or number.
modeYesjob for finite work or service for a long-running process.
imageYesA fully qualified approved image reference. Tenant-built images include the registry host and Tenant ID, for example registry.dphi.space/tenant-a/demo/hello:v1.
commandNoString array replacing the image's default entry point.
argsNoString array supplied as process arguments.
envNoLiteral environment variables with unique valid names. Do not place secrets here.
cpuNoPositive plain decimal string in CPU cores; fractional values such as "0.5" are supported. Defaults to "1".
memoryNoPositive plain decimal string in GiB, such as "2". Defaults to "1".
gpuRequestNoStrict boolean: true requests one shared GPU access token; false or omission requests none. Integers are rejected. Access does not guarantee an exclusive physical GPU.
portsNoInternal TCP endpoints exposed only within permitted platform networking.
mountsNoComplete list of up to four writable volume/path mounts per component; see below.

A specification must contain between one and ten components with unique names. Environment variable names must begin with a letter or underscore and then use letters, numbers, or underscores.

Port fields​

FieldRequiredRules
nameYesUnique in the component and follows the component-name format.
portYesInteger from 1 through 65535.

Port-bearing component names are tenant-wide endpoint names while active. Do not run two port-bearing components with the same name at the same time.

Mount fields​

Omitted mounts (or null) retains the Tenant's default volume at /data. mounts: [] attaches no persistent storage. A nonempty list describes exactly which volumes are mounted, including default only if explicitly selected. Each component supports up to four writable mounts, with each volume listed once. Different components may share a volume. Each entry requires volume and path; readOnly and other unknown fields are rejected.

Paths must be clean absolute paths of at most 4096 characters, such as /output or /app/results. Root, trailing/repeated slashes, control characters, ./.. segments, duplicate paths, and nested mount paths are rejected. /output and /output2 do not overlap.

mounts:
- volume: experiment-a
path: /output

To save another execution on experiment-b, change only volume; application code continues to write to /output. The default volume remains automatically provisioned and protected from deletion regardless of attachment.

Every component runs without root privileges. Platform machine-identity variables are injected unless the manifest incorrectly overrides those reserved names.