Kubernetes as the API for Everything: Crossplane, ACK and the Universal Control Plane
Most platform teams I talk to don’t have a tooling problem. They have an interface problem. A developer who needs a bucket, a queue or a database has to learn a ticket template, a Terraform module, a pipeline with manual approval gates and a wiki page that was last accurate two reorgs ago. Each of those is a different API with different semantics, different access controls and a different idea of what “done” means.
My view, after building platforms in a few very different organisations, is that the Kubernetes API is the best general-purpose control plane we have. Not because everything should run on Kubernetes, but because the Kubernetes Resource Model (KRM) gives you one consistent way to declare, secure, observe and reconcile anything, including things that live entirely outside the cluster. Here’s why that works, how the pieces fit together, and where it hurts.
Why the KRM works as a universal API
The KRM is a small set of conventions: every object has apiVersion, kind, metadata, a spec for desired state and a status for observed state. Controllers work continuously to make reality match the spec. The power is in what you get for free once something speaks that model.
Declarative desired state and level-triggered reconciliation
Kubernetes controllers are level-triggered, not edge-triggered. They don’t react to a create event and forget about it; they repeatedly compare desired with actual state and act on the difference. If someone changes a bucket policy in the console at 2am, the controller puts it back on its next resync.
This is the property I care about most. A pipeline that ran terraform apply successfully last Tuesday tells you nothing about what exists today.
Consistent verbs, RBAC, audit and admission
Once your infrastructure is a set of Kubernetes resources, you inherit the entire machinery of the API server:
- The same verbs (
get,list,watch,create,update,patch,delete) for a Deployment and an RDS instance. - RBAC scoped by namespace and resource type. “Team payments can create
Databaseobjects in their namespace” is a five-line Role. - Audit logging from the API server, with no extra work.
- Admission control with Kyverno, OPA Gatekeeper or the built-in ValidatingAdmissionPolicy using CEL, which went GA in Kubernetes 1.30. Policy is enforced at the API, before anything reaches the cloud.
Status and conditions as a contract
Well-behaved controllers write status.conditions, so kubectl wait, Argo CD health checks and your developer portal can all answer “is my thing working?” the same way, whether the thing is a pod or a Cloud SQL instance.
One toolchain
kubectl, Argo CD or Flux, Kustomize, Helm, policy engines, Prometheus metrics from controllers. Your teams already know this stack for applications. Using it for infrastructure removes an entire parallel universe of tooling.
What it replaces
Ticket-driven provisioning puts a human in the loop for every change, and the “API” is a free-text field. The moment the ticket closes, the resource starts drifting.
Pipeline-driven Terraform is a big step up, and I’ve built plenty of it. But in most organisations it’s run-once in practice: the pipeline applies on merge and nothing runs again until the next change. Drift accumulates silently, plans become scary, and eventually someone is afraid to touch the state file. You can schedule drift detection, but you’re bolting reconciliation onto a tool that wasn’t designed around it. For a controller, reconciliation is the default.
The building blocks
There are two distinct layers here, and conflating them is the most common design mistake I see.
Layer 1: provider controllers
These translate a Kubernetes resource into calls against a cloud API. Each one exposes the cloud’s own resource model, field for field.
- AWS Controllers for Kubernetes (ACK): one controller per AWS service (S3, RDS, IAM, SQS and so on), generated from the AWS SDK and maintained by AWS.
- Azure Service Operator v2: a single operator covering a large set of Azure resource types, generated from the ARM specs.
- Config Connector: Google’s controller for Google Cloud resources, also available as the managed Config Controller.
- Crossplane providers: community and Upbound-maintained providers that install managed resources for AWS, Azure, GCP and many others.
Here is an S3 bucket via ACK. Note that spec.name is required and is the actual bucket name in AWS:
apiVersion: s3.services.k8s.aws/v1alpha1
kind: Bucket
metadata:
name: payments-invoices
namespace: team-payments
spec:
name: acme-payments-invoices-prod
versioning:
status: Enabled
tagging:
tagSet:
- key: owner
value: team-payments
Useful, but not a platform API. Raw ACK, ASO or Config Connector resources hand developers every knob the cloud exposes and make them responsible for getting encryption, tagging, public access and lifecycle right.
Layer 2: composition and abstraction
This layer lets the platform team define their own APIs, shaped around developer intent, and map them onto provider resources.
Crossplane does this with a CompositeResourceDefinition (XRD), which defines a new API type, and a Composition, which defines how an instance of that type is turned into other resources through a pipeline of functions.
The important change came with Crossplane v2, released in 2025. Two things matter for this pattern:
- Composite resources (XRs) can compose any Kubernetes resource, not just Crossplane managed resources. That includes ACK, ASO and Config Connector objects, plain Deployments, ConfigMaps, whatever you need.
- XRs are namespaced by default, and claims are gone for v2 XRDs. Developers create the XR directly in their namespace, and namespace-scoped RBAC just works.
Put together, this means you can use Crossplane purely as the abstraction layer and let ACK be your AWS provider. You get vendor-maintained controllers for the cloud, and a vendor-neutral composition engine on top.
Here’s a small namespaced platform API for a bucket:
apiVersion: apiextensions.crossplane.io/v2
kind: CompositeResourceDefinition
metadata:
name: buckets.platform.example.io
spec:
scope: Namespaced
group: platform.example.io
names:
kind: Bucket
plural: buckets
versions:
- name: v1alpha1
served: true
referenceable: true
schema:
openAPIV3Schema:
type: object
properties:
spec:
type: object
properties:
dataClassification:
type: string
enum: [internal, confidential]
versioned:
type: boolean
default: true
required: [dataClassification]
status:
type: object
properties:
bucketName:
type: string
And a trimmed Composition that renders an ACK Bucket using function-go-templating, followed by function-auto-ready:
apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
name: bucket-aws-ack
spec:
compositeTypeRef:
apiVersion: platform.example.io/v1alpha1
kind: Bucket
mode: Pipeline
pipeline:
- step: render-ack-bucket
functionRef:
name: function-go-templating
input:
apiVersion: gotemplating.fn.crossplane.io/v1beta1
kind: GoTemplate
source: Inline
inline:
template: |
{{ $xr := .observed.composite.resource }}
apiVersion: s3.services.k8s.aws/v1alpha1
kind: Bucket
metadata:
annotations:
gotemplating.fn.crossplane.io/composition-resource-name: bucket
spec:
name: acme-{{ $xr.metadata.namespace }}-{{ $xr.metadata.name }}
versioning:
status: {{ if $xr.spec.versioned }}Enabled{{ else }}Suspended{{ end }}
tagging:
tagSet:
- key: data-classification
value: {{ $xr.spec.dataClassification }}
- step: auto-ready
functionRef:
name: function-auto-ready
The developer-facing side is now this:
apiVersion: platform.example.io/v1alpha1
kind: Bucket
metadata:
name: invoices
namespace: team-payments
spec:
dataClassification: confidential
Naming, tagging, encryption defaults, region and account selection are now the platform’s problem, encoded once in the Composition and versioned in Git. In practice you’d also add an environment or account prefix, since S3 bucket names are globally unique.
One practical gotcha when composing non-Crossplane resources: readiness. function-auto-ready looks for a Ready condition on composed resources, and not every provider controller reports one the same way (ACK, for example, has historically centred on its own ACK.ResourceSynced condition). Check what your controllers actually write, and if needed set readiness explicitly from your template or with a dedicated function, otherwise your XR may never report ready.
kro as an alternative
kro (Kube Resource Orchestrator) is a newer project backed jointly by AWS, Google Cloud and Microsoft. You define a ResourceGraphDefinition with a simple schema and a set of templated resources wired together with CEL expressions, and kro generates the CRD and a controller for it. It’s deliberately narrower than Crossplane, with no package manager, function pipeline or providers of its own. For lightly grouping ACK or Config Connector resources behind a custom API it’s worth evaluating, but it is still pre-1.0.
flowchart LR
dev[Developer] --> git[(Git repository)]
portal[Developer portal] --> git
git --> gitops[Argo CD / Flux]
gitops --> xr[Platform API<br/>Bucket XR]
xr --> comp[Crossplane<br/>Composition pipeline]
comp --> ack[ACK controllers]
comp --> aso[Azure Service<br/>Operator v2]
comp --> kcc[Config Connector]
ack --> aws[AWS APIs]
aso --> arm[Azure Resource<br/>Manager]
kcc --> gcp[Google Cloud APIs]
aws -. status .-> ack
arm -. status .-> aso
gcp -. status .-> kcc
ack -. conditions .-> comp
aso -. conditions .-> comp
kcc -. conditions .-> comp
comp -. XR status .-> xr
xr -. health .-> portal
Diagram 1 — Platform API composed over cloud provider controllers
Architecture decisions that matter
Dedicated management cluster or in-cluster?
I strongly prefer dedicated management clusters running Crossplane and the provider controllers, separate from workload clusters. A workload cluster upgrade shouldn’t put your ability to manage production databases at risk, and a misbehaving application shouldn’t compete with your control plane for API server capacity.
In-cluster controllers are fine for small estates or for resources tightly coupled to one cluster’s lifecycle. Beyond a handful of clusters, centralise. One management cluster per environment tier or region also limits how far a bad Composition change can reach.
Credentials: no static keys
Controllers need cloud credentials, and they should never be long-lived keys in a Secret. Use the workload identity mechanism for each cloud:
- AWS: IRSA or EKS Pod Identity for the ACK controllers. For multi-account setups, ACK supports cross-account resource management, mapping namespaces to IAM roles in target accounts.
- Google Cloud: Workload Identity Federation for Config Connector, ideally in namespaced mode so each namespace maps to its own Google service account.
- Azure: workload identity for ASO v2, which supports credentials at global, namespace and per-resource scope.
Scope these tightly. The controller’s permissions are the real ceiling on what your platform API can do.
Deletion policies and stateful resources
This is where people get hurt. Deleting a Kubernetes object deletes the cloud resource. A careless kubectl delete namespace, an over-eager Argo CD prune, or a Composition refactor that renames a composed resource can all drop a production database. Every provider lets you decouple the two:
- ACK supports a
retaindeletion policy, set per resource with theservices.k8s.aws/deletion-policyannotation, per namespace, or as a controller default. - Config Connector supports
cnrm.cloud.google.com/deletion-policy: abandon. - ASO v2 has the
serviceoperator.azure.com/reconcile-policyannotation, withdetach-on-deleteandskipoptions. - Crossplane managed resources use management policies, so you can omit
Deletefor anything stateful.
My rule: anything holding data defaults to retain or abandon, enforced by admission policy, not by convention. Pair that with cloud-native protections like RDS deletion protection and S3 Object Lock where they make sense.
Observing and adopting what already exists
You will never start from a green field. ACK provides an AdoptedResource type for bringing existing AWS resources under management, and newer releases add annotation-based adoption. Config Connector acquires an existing resource when you create an object that matches it. Crossplane lets you import by setting the crossplane.io/external-name annotation, and the Observe management policy lets you watch a resource and surface its status without ever modifying it. Observe-only is a low-risk way to build confidence before you let a controller write anything.
Splitting the estate by rate of change
The most useful question I’ve found for deciding what belongs in a controller is not “can Crossplane manage this?” It can manage almost anything. The question is how often does this change, and who changes it?
A cloud estate has layers that change at very different speeds:
| Layer | Examples | Changes | Changed by | Tool |
|---|---|---|---|---|
| Landing zone | Organisation, accounts or subscriptions, OUs and SCPs, identity federation, network hubs, logging and security accounts | A few times a year | The platform team, carefully | Terraform or OpenTofu |
| Platform (PaaS) | The management cluster, workload clusters, shared networking, DNS zones, KMS keys, shared data services | Monthly | The platform team | Terraform or OpenTofu |
| Workload | Buckets, queues, databases, caches, IAM roles and DNS records for each application | Daily, constantly | Many application teams, self-service | Crossplane over provider controllers |
The tools suit the layers for different reasons.
Foundations want a reviewed plan, not continuous reconciliation. A change to an SCP, a transit gateway or an identity provider is rare and has a huge blast radius. terraform plan is exactly the right workflow: a human reads the full diff, a second human approves it, and it’s applied once. Continuous reconciliation adds little to resources nobody else touches, and a controller that “fixes” a hub network at 2am because someone made an emergency change is a risk, not a feature.
Workload resources want an API, not a pipeline. Hundreds of teams creating and changing small resources every day need self-service, namespace-scoped RBAC, admission policy and drift correction. That’s what the KRM is good at, and running a Terraform pipeline per application bucket recreates the ticket queue with extra steps.
This split also keeps the scariest failure modes out of the control plane. If the management cluster has a bad day, application teams can’t create new queues for an hour. Nobody’s network disappears.
flowchart TD
tf[Terraform / OpenTofu<br/>reviewed plans, rare change] --> lz[Landing zone<br/>accounts, identity, network hubs]
tf --> paas[Platform<br/>clusters, shared network, KMS, DNS zones]
tf -- publishes outputs --> env[(EnvironmentConfig<br/>VPC, subnets, keys, accounts)]
env --> xp[Crossplane compositions<br/>in the management cluster]
teams[Application teams] -- XRs via GitOps --> xp
xp --> ctrl[ACK / ASO / Config Connector]
ctrl --> wl[Workload resources<br/>buckets, queues, databases, roles]
Diagram 2 — Terraform owns the foundations, controllers own the workload layer
The contract between the layers
The two layers meet at a small, explicit contract. Terraform publishes what the workload layer needs to know: VPC and subnet IDs, KMS key ARNs, account IDs, DNS zone IDs. The cleanest way I’ve found is to have Terraform write those outputs into the management cluster as a Crossplane EnvironmentConfig, one per environment, which Compositions read through function-environment-configs. A parameter store such as SSM works too, but keeping the contract inside the cluster means a Composition never has to call out to find its own inputs.
Three rules keep this sane:
- Every resource has exactly one owner. If Terraform and a controller both manage the same security group, they will fight, and the cloud will flap between their two versions. Decide the owner and make the other side read-only.
- Terraform never creates workload resources, and controllers never create foundations. “Just this once” is how a landing zone ends up half in a state file and half in etcd.
- Revisit the line when the rate of change moves. Clusters start in the platform layer, but once you’re running dozens of them and creating them weekly, they behave like workload resources and belong in a controller. That’s the move I describe in From Cluster Management to Fleet Management.
Failure modes I’d plan for
Every team I’ve seen adopt Crossplane hit some version of these. None of them is a reason not to adopt it, but each is much cheaper to design for up front than to discover in production.
Version upgrades
There are three things to upgrade, on three different schedules: Crossplane itself, the provider packages, and your own platform APIs.
- Crossplane core. Major versions remove things. Crossplane v2 dropped several long-deprecated features, including native patch-and-transform Compositions (you now need function pipelines) and
ControllerConfig(replaced byDeploymentRuntimeConfig). Teams that ignored the deprecation warnings found out on upgrade day. Read the upgrade notes, run the conversion tooling early, and upgrade a non-production management cluster first. - Providers. A provider upgrade can change CRD schemas, rename fields or move resources to a new API version. If the CRD’s stored version changes, every existing object has to be migrated, and if a conversion webhook served by the provider is down, requests for those types fail. Pin every provider version, set
revisionActivationPolicy: Manualso a new revision installs but doesn’t take over until you say so, and keep members of a provider family on the same version. - Your Compositions. This is the one that surprises people. Change a Composition and, by default, every XR using it is re-rendered on its next reconcile, across every team at once. There’s no canary. Use composition revisions with a manual update policy so each XR stays on a known revision until you move it, roll changes through environments by revision, and treat a Composition change like a production deploy, because it is one.
Too many CRDs
Each CRD costs memory in the API server and adds to every client’s discovery. The old monolithic AWS provider installed around 900 CRDs on its own, and clusters with a few thousand show it:
kubectlprints “Waited for … due to client-side throttling” and every command gets slower.- API server memory jumps when a provider installs, and discovery requests get heavy.
- Argo CD’s application controller watches every resource type it can see, so its memory grows with the CRD count, not just with what it deploys.
The fixes are mostly about installing less:
- Use provider families (
provider-aws-s3,provider-aws-rdsand so on) instead of monolithic providers, or ACK’s per-service controllers, and install only the services you use. - Activate only the managed resources you need. Crossplane v2’s ManagedResourceDefinitions and activation policies install a provider without activating all of its CRDs. ASO v2’s
crdPatterndoes the same for Azure. - Tell Argo CD to ignore what it doesn’t manage with resource exclusions, and use annotation-based resource tracking (the default since Argo CD 3.0). Composed resources inherit labels from their XR, and label-based tracking can make Argo CD think it owns them, then prune them.
Scaling the control plane
A single management cluster works well for a long time, then fails in ways that are hard to see coming.
- Provider controllers are the bottleneck, not the API server. Each provider reconciles its resources at a configured rate and re-polls the cloud API on an interval, to detect drift. With thousands of resources, a provider either falls behind (changes take minutes to land) or hits the cloud’s API rate limits and starts getting throttled. Tune the reconcile rate and poll interval per provider through a
DeploymentRuntimeConfig, give the pods real CPU and memory requests, and watch reconcile latency and cloud throttling errors as first-class metrics. - Polling is a trade-off you’re making whether you know it or not. A shorter poll interval catches drift sooner and spends more of your API quota. For most workload resources, detecting drift within tens of minutes is fine.
- Shard before one cluster becomes everyone’s problem. One management cluster per environment tier is the minimum, so a bad Composition in staging can’t touch production. Beyond that, split by region or business unit when reconcile latency, upgrade risk or blast radius start to hurt. Each additional cluster costs upgrades, monitoring and on-call attention, so shard for a reason, not on principle. If you’d rather not run the clusters at all, managed control planes such as Upbound Spaces exist for exactly this.
Restoring a management cluster
This one bites at the worst possible time. The management cluster’s etcd is the desired state for real cloud resources, and the link between each object and its cloud resource is usually just the crossplane.io/external-name annotation (or its equivalent in ACK and ASO).
- Lose the annotations and controllers may create duplicates of resources that already exist.
- Restore a stale backup and controllers will faithfully “correct” the cloud back to how it looked when the backup was taken, undoing everything that changed since.
Back up the management cluster with Velero or similar, and test the restore. When you restore, start with reconciliation paused, using the crossplane.io/paused annotation or the Observe management policy, then check what the controllers would change before letting them act.
The quieter ones
- Two owners fighting. A controller and a console user, Terraform, or a second controller all “correcting” the same resource. The symptom is a resource that flaps between two states. The fix is ownership, enforced at the IAM level, not just by convention.
- A broken function stops a whole resource type. If a Composition function fails, every XR that uses it stops reconciling. Pin function versions and alert on XRs that aren’t
Synced. - Deletion cascades. Covered above, and worth repeating: a renamed composed resource, an over-eager prune or a deleted namespace can delete real data. Retain by default for anything stateful.
The honest trade-offs
I’m enthusiastic about this pattern, but it is not free. Beyond the failure modes above:
Control plane blast radius. Your management cluster is now a tier-zero system. Back it up, monitor it, restrict who can change Compositions, and test those changes on a non-production management cluster first.
Your platform API is a public contract. Breaking changes need a new version, and migrating stored objects across versions of your own XRDs is real work. Design APIs you can live with.
Debugging through layers. When a developer’s Bucket isn’t ready, the cause might be in the XR, the Composition, a function, the ACK resource or the AWS API. crossplane beta trace helps, but the learning curve for whoever is on call is steep.
Eventual consistency. Nothing is synchronous. Developers used to a green or red pipeline need to read conditions instead, so make your portal do it for them.
Secrets. Connection details land in Kubernetes Secrets by default. Plan for External Secrets Operator or similar, etcd encryption at rest and tight RBAC on Secrets in the management cluster.
A practical adoption path
If I were starting this tomorrow, this is the order I’d follow.
- Pick one painful self-service capability. Not “all infrastructure”. Choose the request that generates the most tickets or the longest wait, often a database or a queue.
- Design the API around developer intent. What does the developer actually need to decide? Usually size, data classification and maybe an engine version, not subnet groups and KMS key policies. Adding fields later is far easier than removing them.
- Start with
v1alpha1and mean it. Version the API from day one, communicate stability levels and plan how you’ll graduate tov1. - Put guardrails at admission. Use ValidatingAdmissionPolicy or Kyverno to enforce naming, required labels, allowed classifications and retain policies on stateful resources. Policy at the API is policy that can’t be bypassed by a creative pipeline.
- Deliver through GitOps. XRs live in team repositories and are applied by Argo CD or Flux like any other manifest. Compositions and XRDs live in the platform repository with proper review.
- Build the golden path in your portal from the same API. A Backstage template or portal form should generate the same XR a developer would write by hand, and the portal should read status from the same objects. One source of truth, two interfaces.
- Measure and expand. Track lead time for the capability, ticket volume and adoption. Add the next capability only once the first one is boring.
The tooling is no longer the hard part. Crossplane v2 composing vendor-maintained controllers is mature enough that the quality of your platform depends almost entirely on the quality of the APIs you design, and that is a product problem, not a YAML problem.