Hosted deployment¶
This is the hosted path, where Xratu operates the control plane and you operate the nodes. It is the same day-0 sequence as Self-hosted deployment with the first phase replaced: there is no control plane for you to deploy, and no storage backend or identity latch for you to decide.
Everything after phase 1 is identical, because tenancy, enrollment and nodes are yours in both topologies.
flowchart TB
A["PHASE 1<br/>Reach your control plane<br/><br/>Install the CLI<br/>Pull the node images<br/>Point the CLI at your endpoint"]
B["PHASE 2<br/>Identity and tenancy<br/><br/>Exchange an external identity<br/>Verify the resolved actor<br/>Verify or create tenancy<br/>Bind additional access"]
C["PHASE 3<br/>Enrollment authority<br/><br/>Reconcile bootstrap authority<br/>Create a data plane pool"]
D["PHASE 4<br/>Nodes<br/><br/>Prepare an installation<br/>Apply it<br/>Verify enrollment"]
A --> B --> C --> D
Before you start¶
You need cluster access for the cluster that will run your nodes, kubectl,
jq, an external identity you are already authenticated with, and the endpoint
Xratu gave you. See
Deployment prerequisites and
Check prerequisites and choose a topology.
export XRATU_IMAGE_REGISTRY=<xratu-published-registry>
export XRATU_VERSION=<release-tag>
export ORG=org-a
export WS=ws-a
export POOL=pool-default
export DP_INSTALL=xratu-dataplane
Phase 1: reach your control plane¶
Xratu operates the control plane, so there is no namespace to create, no manifest to apply, no rollout to wait on, and no storage backend or identity latch to decide. You are given an endpoint.
Your nodes still run in your own infrastructure, so the data plane and kernel images still have to be reachable from the cluster that will run them. The control-plane image is not your concern.
pip install xratu
xratu --help
docker pull ${XRATU_IMAGE_REGISTRY}/xratu-data-plane:${XRATU_VERSION}
docker pull ${XRATU_IMAGE_REGISTRY}/xratu/kernels/execd:${XRATU_VERSION}
export CP_CLI_ENDPOINT=<your-hosted-control-plane-url>
xratu config profile set default --endpoint "${CP_CLI_ENDPOINT}" --use
Expected state. The active profile carries the hosted endpoint, and no token yet.
Exit gate. The endpoint is recorded on the active profile. It is proven reachable by the identity exchange in phase 2, which is the first call that authenticates against it.
Phase 2: identity and tenancy¶
Clear any stale token, then exchange your external identity. Run the block for your provider.
Create tenancy and bind any additional access.
xratu auth whoami
xratu create organization ${ORG} --set-active
xratu create workspace ${WS} --organization ${ORG} --set-active
xratu bind role admin --to group:xratu-platform-admins --organization ${ORG}
Expected state. xratu auth whoami resolves a real actor: actor_id is no
longer system, auth_context.mode is token, and
auth_context.token_provider names the provider you exchanged against. The
organisation and workspace exist, and the acting identity is bound as owner of
each.
Exit gate. The resolved actor is not the system actor.
A 403 cloud token exchange is disabled means the control plane's auth posture
forbids it; inspect it with xratu auth config-get. A 403 unable to resolve
actor from external token means the token is not one the control plane accepts
for that provider. See
External identity exchange.
Phase 3: enrollment authority¶
Expected state. Tenant-scoped enrollment authority exists for the organisation, and the pool is recorded and available for an installation or a manually minted invitation to scope to.
Exit gate. The pool is listed for the organisation.
Both commands are control-plane-only and need no node. See Bootstrap reconcile and Pool lifecycle.
Phase 4: nodes¶
Prepare the installation. The flags carry everything the installation needs, and what this renders is ready to apply. It reaches your cloud and cluster not at all, so it is also where you can read the generated Terraform before it runs.
The command is the same on every cloud; only the provider fields differ. Pick your cloud, and replace every value in angle brackets:
xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
--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>
The shortest required set of the three. Full detail, including the IAM roles and workload identity binding, is in Deploying on GCP.
xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
--provider aws \
--dp-count 2 \
--artifact-registry <aws-account-id>.dkr.ecr.<region>.amazonaws.com/<repository> \
--artifact-bucket s3://<bucket>/<prefix> \
--account-id <aws-account-id> \
--region <region> \
--cluster-oidc-issuer https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id> \
--cluster-oidc-provider-arn arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
The cluster's IAM OIDC provider must already exist, and a wrong OIDC value fails after apply rather than during it. Collect both values first: see Deploying on AWS.
xratu dataplane install prepare ${ORG} ${POOL} ${DP_INSTALL} \
--provider azure \
--dp-count 2 \
--artifact-registry <acr-name>.azurecr.io/<repository> \
--artifact-bucket azblob://<storage-account>/<container>/<prefix> \
--subscription-id <subscription-id> \
--tenant-id <tenant-id> \
--location <location> \
--resource-group <resource-group> \
--aks-oidc-issuer https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ \
--artifact-registry-scope /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>
The longest required set, because role assignments are scoped by resource ID. Full detail is in Deploying on Azure.
The registry and the bucket must already exist on every cloud. Terraform creates roles and policies; it creates neither.
This writes the install bundle under install/${DP_INSTALL}/: the Terraform
under terraform/, the five Kubernetes manifests under k8s/, the data plane
bootstrap document under xratu/, and two specs beside them.
install.spec.json is the bundle document apply consumes;
install.input.yaml is the normalised spec you edit and re-prepare from.
Apply it. This reads each generated file from disk as it uses it, so any edit you made is what reaches your cloud and cluster.
Or run both in one step. up prepares and applies in a single call, and is
the normal way to run an installation. It takes the same provider flags
prepare does:
xratu dataplane install up ${ORG} ${POOL} ${DP_INSTALL} \
--provider aws \
--dp-count 2 \
--artifact-registry <aws-account-id>.dkr.ecr.<region>.amazonaws.com/<repository> \
--artifact-bucket s3://<bucket>/<prefix> \
--account-id <aws-account-id> \
--region <region> \
--cluster-oidc-issuer https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id> \
--cluster-oidc-provider-arn arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
xratu dataplane install up ${ORG} ${POOL} ${DP_INSTALL} \
--provider azure \
--dp-count 2 \
--artifact-registry <acr-name>.azurecr.io/<repository> \
--artifact-bucket azblob://<storage-account>/<container>/<prefix> \
--subscription-id <subscription-id> \
--tenant-id <tenant-id> \
--location <location> \
--resource-group <resource-group> \
--aks-oidc-issuer https://<location>.oic.prod-aks.azure.com/<aks-oidc-path>/ \
--artifact-registry-scope /subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ContainerRegistry/registries/<acr-name>
up still writes the bundle to disk, so the record of what was applied is the
same. Split it into two commands when you want to read terraform plan before
the cloud layer runs. See The install contract.
Verify enrollment.
Expected state. Apply materialises the StatefulSet and its retained volume
baseline, project runtime authority, workload identity registration, the managed
private fabric and the enrollment token set, then scales the installation to
dp_count. Each node's init container performs the bootstrap join, presenting
its invitation code with the installation and instance identifiers and its node
label; the control plane validates the invitation's scope and returns a seed,
which is persisted with the node's identity state under
/var/lib/xratu/identity.
Exit gate. Every node in the installation is registered.
If a node never appears, the failure is in the join: endpoint reachability, the invitation and its scope, or token injection. See Diagnosing a node that will not enroll.
Phase gates at a glance¶
| Phase | Exit gate | If it fails |
|---|---|---|
| 1 | The endpoint is recorded on the active profile | Configure a CLI profile |
| 2 | actor_id is not system |
External identity exchange |
| 3 | The pool is listed for the organisation | Bootstrap reconcile |
| 4 | Every node is registered | Diagnosing a node that will not enroll |
What the sequence assumes¶
Your organisation is commonly provisioned during onboarding, which makes phase 2
a verification rather than a creation. Where it already exists, confirm it with
xratu config view and continue.
Where day 0 ends¶
Day 0 ends at a verified enrollment. Your nodes can now build and deploy projects, and a deployed project runtime's kernel executes that project's agents and workflows itself.
Everything after this is day 2: rollouts, upgrades, scaling, drain, rotation and incident response, in Operate. For symptoms during day 0, see Verifying and troubleshooting day-0.