Skip to content

Two ways to drive install

An installation is described either by flags on the command line or by an install spec file. Both produce the same bundle, and prepare writes the spec form either way.

Flags

xratu dataplane install prepare acme edge-eu dp-eu-west1 \
  --provider gcp \
  --dp-count 2 \
  --artifact-registry <region>-docker.pkg.dev/<gcp-project-id>/<repository> \
  --artifact-bucket gcs://<bucket>/<prefix> \
  --project-id <gcp-project-id> \
  --region <region>

Good for a first installation and for anything scripted from values you already hold.

An install spec

xratu dataplane install prepare --install-spec install/dp-eu-west1/install.input.yaml

The spec is dataplane.install.spec.v1:

contract_version: dataplane.install.spec.v1
organization_name: acme
dataplane_pool: edge-eu
dp_install: dp-eu-west1
dp_count: 2
provider: gcp
transfer_credential_mode: asptc
namespace: dp-eu-west1
workload:
  kind: statefulset
control_plane:
  base_url: http://xratu-control-plane.xratu.svc:8080
  trust_bundle_ref: ''
artifact_registry:
  path: <region>-docker.pkg.dev/<gcp-project-id>/<repository>
artifact_bucket:
  path: gcs://<bucket>/<prefix>
runtime:
  service_account: ''
  image: <region>-docker.pkg.dev/<gcp-project-id>/<repository>/xratu-data-plane:latest
  cloud_identity_name: ''
build:
  namespace: ''
  service_account: ''
  cloud_identity_name: ''
scheduler_authority:
  project_runtime_namespaces: []
  model_runtime_namespaces: []
  build_namespaces: []
provider_config:
  project_id: <gcp-project-id>
  region: <region>

An empty value means the contract derives it. namespace shows dp-eu-west1 because it was derived from dp_install, while runtime.service_account is blank and resolved at render time.

You get the spec either way

prepare writes install.input.yaml whichever way you drove it, so a flag-run installation is immediately reproducible from a file:

xratu dataplane install prepare acme edge-eu dp-eu-west1 \
  --provider gcp \
  --dp-count 2 \
  --artifact-registry <region>-docker.pkg.dev/<gcp-project-id>/<repository> \
  --artifact-bucket gcs://<bucket>/<prefix> \
  --project-id <gcp-project-id> \
  --region <region>

xratu dataplane install prepare --install-spec install/dp-eu-west1/install.input.yaml

The second command reproduces the first. That is the usual route into the spec form: drive it with flags once, then keep the file.

Which to use

Situation Use
A first installation Flags
An installation you will repeat or review The spec
Anything under version control The spec
A value no flag exposes The spec
Several similar installations The spec, one file each

The spec reaches further than the flags. scheduler_authority is the clearest case: the namespaces a node may host project runtimes, model runtimes and builds in are spec fields, and leaving them empty means the node reports no approved project runtime namespace and is never selected for placement. See Pools, tenant scope, and placement.

Editing and re-preparing

The spec is the durable place to make a change, because prepare rewrites every generated file but reads the spec as input:

xratu dataplane install prepare --install-spec install/dp-eu-west1/install.input.yaml
xratu dataplane install apply acme edge-eu dp-eu-west1

See Editing generated files.

Both work with up

xratu dataplane install up --install-spec install/dp-eu-west1/install.input.yaml

up prepares and applies in one call, which closes the window for editing the rendered files. Driving from a spec keeps that acceptable, because the values you would have edited are in the file already. See up as a shortcut.