Deploying on GCP¶
Only what differs on GCP. The deployment flow itself is Deploying a data plane, and the commands are the same on every cloud.
xratu dataplane install prepare 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>
Values in angle brackets are yours to supply, so replace every one before
running a command. Names without brackets, such as the organization, pool and
dp_install, are the ones you choose in Xratu.
What GCP asks for¶
The shortest required set of the three clouds: project_id and region, plus
gcp_iamcredentials_endpoint, which carries a public default.
In this section¶
- Required
provider_configcovers the fields and what each is used for. - GCP resources covers the three service accounts and the grants Terraform creates.
- Workload Identity covers the annotation and the binding that pair to it.
- GCP paths covers the Artifact Registry root and the
gcs://bucket form. - GCP IAM roles covers the five grants and the publish delegation.
- GCP-specific edits before apply covers the IAM-shape changes some organisations require, none of which an installation needs to complete.
Walkthrough¶
- Prepare and apply on GCP prepares, reviews the generated Terraform, applies, and verifies the bound service accounts.
The two things to settle early¶
The registry and the bucket must already exist. Terraform creates identities and grants; it creates no repository and no bucket. A path naming something absent fails at apply.
Workload Identity must be enabled on the cluster. The bundle renders the annotation and the IAM binding, and the cluster feature is yours to turn on.