Check prerequisites and choose a topology¶
What you will end up with¶
A verified toolchain, confirmed cluster access, a provider identity you can prove, and a recorded topology decision held in shell variables that the later deployment steps consume.
Nothing is created in your cluster or cloud by this page.
Prerequisites¶
- The CLI installed, per Install the CLI and its dependencies.
kubectlcontext pointing at the cluster you intend to deploy into.- If you are deploying on a cloud, that provider's CLI, already authenticated.
1. Confirm the local toolchain¶
Python must report 3.11 or later. The other two need only be present and
runnable; kubectl reports its client version and jq its own version string.
Confirm the CLI reads its own configuration:
2. Confirm cluster access and rights¶
Set the namespaces you intend to use, then check you can reach the cluster and create workloads in them.
export CP_NS=xratu-cp
export DP_NS=xratu-dp
kubectl cluster-info
kubectl auth can-i create deployment --namespace "${CP_NS}"
kubectl auth can-i create statefulset --namespace "${DP_NS}"
kubectl auth can-i create secret --namespace "${DP_NS}"
kubectl cluster-info prints the control-plane address of your Kubernetes
cluster. Each can-i check prints yes or no; all three must print yes.
The control plane is a Deployment, a data plane installation is a StatefulSet,
and enrollment material is delivered as a Secret, so a no on any of them
blocks a specific later step rather than the whole path.
3. Confirm your provider identity¶
You will exchange an external identity for an Xratu token later. Confirm now that you can mint that external token, because Xratu does not authenticate you with your provider.
Run the one matching your provider. The audience is the control plane.
# GCP: service account or workload identity
TOKEN="$(gcloud auth print-identity-token \
--impersonate-service-account=<service-account-email> \
--audiences=xratu-control-plane)"
# Azure
TOKEN="$(az account get-access-token --resource xratu-control-plane --query accessToken -o tsv)"
Confirm you received something:
An empty result here means the problem is with your provider session, not with Xratu. On GCP specifically, minting an identity token with an audience requires a service-account identity or service-account impersonation.
4. Record the topology decision¶
Two questions settle the topology. Who operates the control plane, and whether your nodes can reach the public internet. See Deployment topologies for what each answer implies.
Record the outcome as variables the later steps use.
# Cloud provider for the data plane installation: gcp | aws | azure
export XR_PROVIDER=gcp
# Dependency resolution mode: standard | airgapped
export XR_RESOLVER_MODE=standard
# Tenant registry root and artifact bucket, both yours
export XR_ARTIFACT_REGISTRY=europe-west2-docker.pkg.dev/intellithing/intellithing
export XR_ARTIFACT_BUCKET=gcs://intellithing-artifacts/xratu
Choose airgapped only if your nodes genuinely have no route out. It forces
all dependency resolution to build time and refuses anything that would need to
resolve at run time.
5. Check the values against the fail-closed rules¶
Two rules are enforced during install preparation, and both are cheaper to satisfy now than to debug later.
The bucket scheme must match the provider: gcs://<bucket>/<prefix> for gcp,
s3://<bucket>/<prefix> for aws, and
azblob://<storage-account>/<container>/<prefix> for azure.
case "${XR_PROVIDER}" in
gcp) [[ "${XR_ARTIFACT_BUCKET}" == gcs://* ]] && echo "bucket scheme ok" ;;
aws) [[ "${XR_ARTIFACT_BUCKET}" == s3://* ]] && echo "bucket scheme ok" ;;
azure) [[ "${XR_ARTIFACT_BUCKET}" == azblob://* ]] && echo "bucket scheme ok" ;;
esac
The provider configuration must be complete. Confirm you can supply every required field for your provider before you prepare an installation:
| Provider | Required fields |
|---|---|
gcp |
project_id, region |
aws |
account_id, region, cluster_oidc_issuer, cluster_oidc_provider_arn |
azure |
subscription_id, tenant_id, location, resource_group, aks_oidc_issuer, artifact_registry_scope |
The per-cloud pages cover where each value comes from: Deploying on GCP, Deploying on AWS and Deploying on Azure.
Verify you are ready¶
Everything below should hold before you move on to images.
python3 --version && xratu config view >/dev/null && echo "cli ok"
kubectl cluster-info >/dev/null && echo "cluster reachable"
test -n "${TOKEN}" && echo "provider identity ok"
test -n "${XR_PROVIDER}" && test -n "${XR_ARTIFACT_REGISTRY}" && test -n "${XR_ARTIFACT_BUCKET}" \
&& echo "topology recorded"
When it fails¶
kubectl cluster-info cannot connect. Your context is wrong or your
credentials have expired. Nothing in Xratu can proceed without cluster access,
because both planes are Kubernetes workloads.
A can-i check prints no. You lack rights in that namespace. A no on
the control-plane namespace blocks deployment; a no on the data plane
namespace blocks the install contract, which creates the StatefulSet and the
enrollment secret on your behalf.
jq is missing. Install it. It is used directly in day-0 verification.
The provider token is empty. Re-authenticate with your provider. On GCP, confirm you are using service-account identity or impersonation, since a plain user credential cannot mint an audience-scoped identity token.
The bucket scheme check prints nothing. Your bucket path does not match your provider. Correct the path now: preparation rejects a mismatch.
You cannot obtain the AWS or Azure OIDC values. These are cluster properties rather than Xratu values, and they are required fail-closed for those providers. Collect them before preparing an installation.
What changed¶
Nothing was deployed, created or configured in any cluster or cloud. You have a verified workstation, confirmed cluster rights, a provider identity you know you can mint, and a recorded topology decision.
That completes everything before deployment. The next step is making the published platform images reachable from your cluster, which is where Images and registries begins, following the order set out in Self-hosted deployment or Hosted deployment.