The install contract¶
Read this before running anything. You express an installation in flags, and one contract renders a bundle of nine files covering both a cloud layer and a cluster layer, then applies them in a fixed order that ends with an enrolled, scaled node.
xratu dataplane install up 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>
prepare and apply are the same path split in two, for when you want to read
the generated Terraform before it runs.
In this section¶
- The three stages covers what
prepare,applyandupeach do, and which to use. - What
preparegenerates covers the seven artifacts, the two specs, and what is derived fromdp_install. terraform_maincovers the cloud resource layer and what differs per provider.- The Kubernetes manifests covers the five cluster artifacts and the bootstrap contract document.
- One bundle, two layers covers why the cloud and workload layers are generated together.
- Apply ordering covers the eleven steps and why they run in that sequence.
upas a shortcut covers the single-call form and when to split it.- The install bundle covers the directory, what to keep, and re-applying.
- Editing generated files covers the fallback for what the flags do not carry, and what a re-prepare rewrites.
- Ownership split covers what the contract owns and what you own.
The three things to settle early¶
Requirements go in the flags. The bundle they render is ready to apply, and
up runs the whole path. Reaching into a rendered file is the fallback for what
the flags do not carry, and a re-prepare rewrites all nine files.
One bundle is one installation. apply refuses a bundle whose organization,
pool or dp_install differ from the arguments you passed. A deployment spanning
clouds is several installations with several bundles.
Three things must exist first. The organization, its reconciled enrollment governance, and the pool. All three install commands validate the pool before proceeding.
Next¶
Deploying a data plane runs the contract end to end, with provider flags and with an install spec.