Prepare your arx.yaml
Overview
arx.yaml is where your application asks the platform for what it needs. The platform provisions those resources at install time and injects their connection details into your pods, so model access, networking, storage, and the desktop entry are wired in rather than configured by hand on site.
This page covers the blocks you declare there. Making the chart hold up its end comes next.
What you'll learn
- How your workload receives the model API endpoint and key
- How to declare the network and storage your application needs
- How to put your application on the ARX desktop
Applies to
- ARX OS 1.0 and later
Before you begin
- Your application is packaged as a container image, and that image can be pulled from an address the ARX system can reach
- You know which ports your application serves, which volumes it needs, and whether it calls a model
Download the skills before you start. You write arx.yaml through them, and each section below points at the reference they carry: arx-marketplace-templates/references/arx-binding.md.
.claude/skills/.arx.yaml for you: once you have settled which platform resources your application needs, the arx-marketplace-templates skill writes the file against the schemas it ships with. Prompt it with the resources rather than the YAML, for example: use arx-marketplace-templates to write arx.yaml for my app: an HTTP service on port 5678, one 10Gi read-write volume, the AI gateway injected as OPENAI_API_BASE_URL and OPENAI_API_KEY, and a desktop shortcut that opens it in an iframe.What arx.yaml declares
arx.yaml sits next to your manifest and is the contract between your application and the platform: you declare the platform resources you need, the platform provisions them and injects the connection details into your pods.
apiVersion: arx.ardge.com/v1
kind: ArxBinding
spec: # at least one block
network: { ... }
storage: [ ... ]
desktop: { ... }
ai: { ... }
Two conventions run through most blocks:
componentstargets pods by theirapp.kubernetes.io/componentlabel. Leave it out to inject into every pod of the releaseinjectmaps a platform field to the environment variable your application reads it from, and the variable name must beUPPER_SNAKE_CASE
Each section below names the block to read in arx-binding.md.
Model API injection
The ai block hands your workload the platform's AI gateway: an OpenAI-compatible base URL and key, injected as the environment variables you name.
spec:
ai:
components: [worker]
inject: # both required
baseUrl: OPENAI_API_BASE_URL
apiKey: OPENAI_API_KEY
Read the ai section of arx-binding.md for the full field list. For what those values are and how an application uses them, see Call on-premises models on ARX through the API.
Network settings
The network block declares the Kubernetes Services your application needs. Every key under network.services becomes a serviceRef that the other blocks point at, so this block usually comes first.
Read the network section of arx-binding.md.
Storage settings
The storage block binds your chart's persistence settings to platform-managed PVCs — one entry per storage slot, each naming the slot, the template that renders the PVC name, and whether access is read-write or read-only.
Read the storage section of arx-binding.md.
Remote storage is mounted on the device side first. See Mount remote storage for an application in Storage Manager for that procedure.
Desktop shortcuts
The desktop block puts your application on the ARX desktop: up to four shortcuts, each with a label, whether it opens in an iframe or a new tab, and the service and path it points at.
spec:
desktop:
shortcuts:
- label: my-app
open: [iframe, newtab]
serviceRef: http
scheme: http
path: /
Read the desktop section of arx-binding.md.
Next step
Prepare app template
Write the ARX app template that puts your application in App Market: the directory layout, the manifest blocks ARX reads, and the full field reference
Prepare Helm chart
Package your application as a chart ARX can install: where ARX reads it from, the labels and persistence values the platform bindings rely on, and how to check the chart against your arx.yaml
