Registry and bucket schemes¶
Two paths are required on every installation: where tenant artifacts are pushed, and where artifact bytes are stored. Both have a shape the contract validates before rendering.
The registry¶
artifact_registry.path is a full registry root: a host followed by a
repository root.
| Provider | Example |
|---|---|
| GCP | <region>-docker.pkg.dev/<gcp-project-id>/<repository> |
| AWS | <aws-account-id>.dkr.ecr.<region>.amazonaws.com/<repository> |
| Azure | <acr-name>.azurecr.io/<repository> |
A path that resolves to a host with no repository root is refused:
The registry root is also where the runtime image is derived from when you do
not name one. With a registry of
<region>-docker.pkg.dev/<gcp-project-id>/<repository>, the spec resolves:
Override it with --runtime-image when you mirror or pin the image.
The bucket¶
artifact_bucket.path is a scheme, a container, and a prefix.
| Provider | Scheme | Shape |
|---|---|---|
| GCP | gcs:// |
gcs://<bucket>/<prefix> |
| AWS | s3:// |
s3://<bucket>/<prefix> |
| Azure | azblob:// |
azblob://<account>/<container>/<prefix> |
Azure takes one more segment than the others because a blob path names a storage account and a container separately.
A path missing a scheme, container or bucket is refused:
artifact_bucket.path must be a supported full bucket path
(gcs://<bucket>/<prefix>, s3://<bucket>/<prefix>, azblob://<account>/<container>/<prefix>)
The scheme must match the provider¶
A separate check pairs them:
So --provider aws with a gcs:// bucket is refused at prepare rather than
failing later against a bucket the node cannot reach.
Both must already exist¶
The registry and the bucket are tenant-owned resources you name. The generated Terraform creates identities and grants, and creates neither of them: there is no repository resource and no bucket resource in any of the three provider templates.
Every line is a service account, IAM role or managed identity, a policy or role assignment, or a federation binding. So create the repository and the bucket first, then name them here, and the Terraform layer adds registry write and bucket read and write for the runtime and build identities.
xratu dataplane install prepare acme edge-eu dp-eu-west1 \
--provider gcp \
--artifact-registry <region>-docker.pkg.dev/<gcp-project-id>/<repository> \
--artifact-bucket gcs://<bucket>/<prefix> \
--project-id <gcp-project-id> \
--region <region>
Creating them in the bundle's Terraform¶
terraform/main.tf is an ordinary Terraform file in your bundle, so adding a
repository or bucket resource to it does work. Two things make it a poor place
to own them.
A re-prepare rewrites the file. Every generated file is regenerated
unconditionally, so resources you added go with it, and the next prepare
leaves Terraform holding state for objects its configuration no longer declares.
The grants name them as strings, not as resources. Every binding references the registry and bucket literally:
resource "google_storage_bucket_iam_member" "runtime_bucket_object_admin" {
bucket = "<bucket>"
...
}
Terraform builds its graph from references, and there is none here, so a bucket
resource added to the same file has no edge to the binding that uses it.
Terraform is free to attempt the grant first, and an explicit depends_on is
what stops that.
Own them outside the bundle. A registry and a bucket outlive any one installation and are usually shared with the rest of your platform, so they belong in your own infrastructure alongside the cluster. That is what lets a bundle be regenerated freely, and why the per-cloud walkthroughs confirm both exist rather than creating them.
What lands where¶
| Destination | Holds |
|---|---|
| Registry | Tenant artifact images your projects publish, and the runtime image the node pulls |
| Bucket | Artifact bytes and observability payload bodies |
The control plane holds metadata, digests and references, and none of the bytes. See The tenant byte boundary.
On a private network¶
Both must be reachable from the node. Where they are reached over private
endpoints, the provider endpoint fields in provider_config are the override
point. See
Air-gapped deployment.