Deploy data planes on two clouds under one control plane¶
What you will end up with¶
One organization holding nodes on two clouds, enrolled into two pools, each from its own installation bundle. GCP and AWS are the worked pair here; any two of the three behave the same way.
Prerequisites¶
- A deployed control plane with an endpoint reachable from both clusters. See API exposure options.
kubectlcontexts for both clusters, and the CLI for each cloud.- A registry and a bucket on each cloud, already created. See Configure the artifact registry and bucket.
- For AWS, the cluster's IAM OIDC provider issuer and ARN.
export ORG=acme
export CP_CLI_ENDPOINT=<your-control-plane-url>
export POOL_GCP=gcp-eu
export POOL_AWS=aws-us
export DP_GCP=dp-eu-west1
export DP_AWS=dp-us-east1
1. Establish tenancy and authority once¶
Phases 1 to 3 of day 0 are deployment-wide. Run them once, whichever cloud you start from.
Expected state. Tenant-scoped enrollment authority exists for the organization, and both pools are recorded against it.
Exit gate. Both pool names are listed for the organization. One reconcile covers both, because enrollment authority is per organization rather than per pool.
2. Prepare the first installation¶
xratu dataplane install prepare ${ORG} ${POOL_GCP} ${DP_GCP} \
--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>
Read the bundle before applying it:
3. Apply it¶
Expected state. Two nodes named ${DP_GCP}-0 and ${DP_GCP}-1 are
registered in ${POOL_GCP}.
4. Prepare and apply the second installation¶
The second target carries its own provider fields, its own bundle directory,
and its own pool. Its dp_install must differ from the first, because node
labels derive from it.
xratu dataplane install prepare ${ORG} ${POOL_AWS} ${DP_AWS} \
--provider aws \
--dp-count 2 \
--artifact-registry <aws-account-id>.dkr.ecr.<region>.amazonaws.com/<repository> \
--artifact-bucket s3://<bucket>/<prefix> \
--account-id <aws-account-id> \
--region <region> \
--cluster-oidc-issuer https://oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id> \
--cluster-oidc-provider-arn arn:aws:iam::<aws-account-id>:oidc-provider/oidc.eks.<region>.amazonaws.com/id/<cluster-oidc-id>
Two directories, two Terraform states, two specs. Re-preparing either leaves the other untouched.
5. Verify one organization holds both¶
Expected state. Four nodes, two per pool, under one organization.
Exit gate. Every node from both installations is registered, and the two pools are distinguishable by name in the listing.
6. Confirm each node reports its own cloud¶
[
{
"dataplane_pool": "gcp-eu",
"dataplane_node_id": "dp-eu-west1-0",
"provider": "gcp",
"region": "<region>",
"cluster_identity": "<gcp-project-id>",
"managed_fabric_baseline": "xratu_managed_private_fabric"
},
{
"dataplane_pool": "aws-us",
"dataplane_node_id": "dp-us-east1-0",
"provider": "aws",
"region": "<region>",
"cluster_identity": "<aws-account-id>",
"managed_fabric_baseline": "xratu_managed_private_fabric"
}
]
Exit gate. Each node carries its own provider, region and
cluster_identity, and every node reports the managed fabric baseline.
When it fails¶
| Symptom | Cause | Fix |
|---|---|---|
| Second installation's nodes replace the first's in listings | Both installations share a dp_install, so node labels collide |
Re-prepare the second with a distinct dp_install |
provider_config.<field> is required for <provider> |
The second cloud needs fields the first did not | See Cloud deltas |
artifact_bucket.path scheme must match provider |
A bucket scheme carried over from the first cloud | Use gcs://, s3:// or azblob:// to match |
| Nodes on the second cloud never register | The control-plane endpoint is not reachable from that cluster | See Endpoint resolution |
| Apply grants fail on the bucket | The bucket does not exist on that cloud | Create it, then re-run apply |
| A node enrolls but cannot pull its image | Registry root or grant belongs to the other cloud | Check runtime.image and the registry grant on that installation |