Bundle isolation¶
Each installation gets its own directory under the output root, named for its
dp_install:
install/
dp-eu-west1/
install.input.yaml
install.spec.json
k8s/
terraform/
xratu/
dp-us-east1/
install.input.yaml
install.spec.json
k8s/
terraform/
xratu/
The default output root is install, and --output-dir moves it.
What the separation gives you¶
Every generated file is regenerated unconditionally. A re-prepare rewrites the bundle it targets. Separate directories mean re-preparing the GCP installation leaves the AWS one untouched.
Terraform state is per directory. Each bundle's terraform/ is its own
root module with its own state, holding that cloud's identities and grants.
The specs are per installation. install.input.yaml is the normalised spec
you edit and re-prepare from, and install.spec.json is the bundle document
apply consumes. Each names one provider and one pool.
Applying one target¶
apply reads each generated file from the bundle directory as it uses it, so
the target it acts on is the bundle you point it at:
The second form is how an edited spec is applied.
Keeping bundles¶
The bundle is the record of what was applied. Both forms of the install command
write it to disk, including up, so the constituents of a running installation
remain readable after the fact.
Bundles hold no credential material: the provider fields name identities and endpoints, and the identities they bind resolve through the cluster's workload identity federation. What a bundle does carry is the enrollment token set, which is secret for its lifetime. See Enrollment tokens.