One Control Plane Per Cloud: A Multi-Cloud Crossplane Walkthrough

Most infrastructure-as-code tutorials stop at one cloud. That's fine until you actually have two, and you're staring at a Terraform state file for AWS, a different one for GCP, and no shared way to reason about either. Crossplane offers a different model: instead of running IaC from a laptop or CI runner, you install a control plane into a Kubernetes cluster and describe cloud resources as Kubernetes objects. A controller reconciles them the same way Kubernetes reconciles a Deployment — continuously, not just at apply time.

I built a repo with two independent Crossplane setups to see what that actually looks like in practice. This post walks through the shape of it, and the parts that surprised me.

The setup

Two clusters, two clouds, no shared state:

ClusterProvisionsAWSAn existing rke2 clusterEC2 instances, VPC, subnets, security groupsGCPA GKE cluster, itself bootstrapped by TerraformCompute Engine instances, and a second GKE cluster

The asymmetry there is intentional and worth dwelling on. The AWS side runs from a cluster that already existed — Crossplane doesn't care where it lives. The GCP side runs from a cluster that Terraform created specifically to host it, which raises the obvious chicken-and-egg question: if Crossplane provisions infrastructure, what provisions the cluster Crossplane runs in?

Bootstrapping the control plane

Something has to create the first cluster, and it can't be Crossplane. Terraform handles that: a VPC, a VPC-native GKE cluster with alias IPs, a single-node pool, and the Crossplane Helm chart installed into crossplane-system. After that, Terraform's job is essentially done — everything downstream is a Kubernetes manifest.

cd terraform
terraform apply
terraform output -raw kubeconfig_command | bash
kubectl get pods -n crossplane-system

Here's the whole GCP side in one picture — Terraform on the left provisioning into the project, and the credential path that everything downstream depends on:

flowchart TD
    subgraph TF["Terraform"]
        state[("GCS State Bucket\n(versioned)")]
    end

    subgraph GCP["GCP Project"]

        subgraph NET["Networking"]
            vpc["VPC\n(custom mode)"]
            subnet["Subnet\n10.0.0.0/24\nPods: 10.1.0.0/16\nServices: 10.2.0.0/20"]
            vpc --> subnet
        end

        subgraph CLUSTER["GKE Cluster — Zonal, public nodes, 1 node, VPC-native"]
            nodepool["Node Pool (1x e2-small)\ndefault Compute Engine SA\nauto-repair + auto-upgrade"]

            subgraph K8S["crossplane-system (Helm)"]
                pod["Crossplane Pod"]
            end
        end

        defaultsa["Default Compute Engine SA\n(roles/editor, pre-existing)"]

    end

    TF -- provisions --> GCP
    TF -- state --> state
    subnet -- hosts --> CLUSTER
    nodepool -- ambient credentials via metadata server --> defaultsa
    pod -- inherits node's ambient credentials --> defaultsa
    defaultsa -- manages GCP resources --> GCP

Trace the two arrows into the default service account — that's the credential story in the next section, and the reason this configuration works at all in a project where I couldn't create a single IAM binding.

One wrinkle worth knowing about if you go this route: the Terraform Helm provider's SDK errors out if any repository in your global ~/.config/helm/repositories.yaml lacks a cached index — including repos that have nothing to do with what you're installing. Pointing the provider at an isolated repo directory inside the Terraform module sidesteps your machine's shared Helm config entirely, and makes the module reproducible on someone else's laptop.

Installing providers

Crossplane core knows nothing about clouds. The cloud knowledge lives in providers — packages that install CRDs and controllers for a specific API surface. You install them like any other Kubernetes object:

apiVersion: pkg.crossplane.io/v1
kind: Provider
metadata:
  name: provider-gcp-compute
spec:
  package: xpkg.upbound.io/upbound/provider-gcp-compute:v3.0.0

Providers are family-scoped now: you install provider-family-gcp alongside the specific service provider you need. Same pattern on AWS with provider-family-aws and provider-aws-ec2. This keeps you from pulling thousands of CRDs into the cluster just to create an EC2 instance.

Once a provider is healthy, a ProviderConfig tells it how to authenticate — and that's where the two clouds diverge most sharply.

Credentials: the interesting part

On AWS, running from an rke2 cluster with no relationship to AWS at all, there's no ambient identity to inherit. Credentials come from ~/.aws/credentials, loaded into a Kubernetes Secret, referenced by the ProviderConfig:

spec:
  credentials:
    source: Secret
    secretRef:
      namespace: crossplane-system
      name: aws-secret
      key: creds

On GCP, running inside GKE, there's a much better option — InjectedIdentity, which uses the workload's ambient credentials with no secret at all:

spec:
  projectID: your-project-id
  credentials:
    source: InjectedIdentity

The textbook way to make InjectedIdentity work is Workload Identity: a dedicated Google service account per provider, bound to a Kubernetes service account with a narrow set of roles. That's the design you should ship.

I couldn't. The project I built this in was a locked-down training sandbox that denied setIamPolicy for every identity available to me — no IAM binding of any kind could be created, Workload Identity included. So the fallback is that every pod on a GKE node inherits the node's identity via the metadata server, which in these sandboxes is the default Compute Engine service account carrying roles/editor. InjectedIdentity picks that up and everything works.

It's worth being blunt about what that means: Crossplane is running as project editor. That's fine for a throwaway sandbox and wrong for anything real. If you can grant IAM roles, do it properly. The value in documenting the workaround isn't that it's a good pattern — it's that "the correct approach is structurally unavailable here" is a real situation, and knowing the fallback beats being stuck.

Cost shapes the design more than you'd expect

Several architectural choices in the repo aren't about elegance, they're about not getting billed:

  • Public nodes, no Cloud NAT. Cloud NAT has no free tier — it bills hourly plus per-GB regardless of usage. Public nodes give up a real defense-in-depth layer to avoid a guaranteed recurring cost. A production cluster should absolutely eat the NAT bill.

  • Zonal cluster, one node, no autoscaling. GKE node compute bills beyond the single free-tier e2-micro allowance no matter what you pick.

  • e2-small machine type. The smallest type that reliably runs GKE system pods plus Crossplane. e2-micro is technically free but doesn't have the headroom in practice.

Watch for org-policy machine-type restrictions too. Sandboxes often whitelist specific types, and a blocked type shows up as a generic ERROR state on node pool creation rather than anything that names the actual cause.

Gotchas worth knowing

A few things cost me time:

  • provider-gcp-container:v3.0.0 panics if a NodePool's nodeConfig block is set at all. Omit it entirely and let GKE default the machine type.

  • Node pool operations can outlast Terraform's wait timeout while the GCP operation is still progressing normally. Before assuming a failure, check gcloud container operations list — it's often still RUNNING and will finish on its own.

  • AWS AMI IDs rotate. A hardcoded AMI in a manifest goes stale; query SSM parameters instead.

  • AWS key pairs are immutable on running instances. Changing one means deleting and recreating the instance.

  • SSH ingress rules pinned to a single IP lock you out the moment your home IP changes. Convenient in a demo, a trap in a week.

What I took away

The thing Crossplane actually changes isn't the syntax — HCL and YAML are about equally pleasant. It's that infrastructure becomes a set of objects a controller keeps reconciling, so drift gets corrected rather than detected on the next plan. The cost is a control plane you have to bootstrap, host, and secure, which is exactly the work Terraform doesn't ask of you.

Whether that trade is worth it depends on how much infrastructure you have and how much you want it self-healing. For two clusters and a handful of instances, it's overkill and a great way to learn the model. At platform-team scale, the calculus flips.

The full walkthroughs — including every manifest, both provider setups, and the errors along the way — are in the repo.