What Crossplane Actually Is

Crossplane is a Kubernetes operator that lets you manage cloud infrastructure using Kubernetes custom resources. Instead of writing HCL files and running terraform apply, you write YAML manifests and kubectl apply them. Crossplane's controllers reconcile the desired state against the cloud provider's actual state, continuously.

The key abstractions:

  1. Managed Resources (MRs), Direct 1:1 mappings to cloud resources. An RDSInstance MR provisions an AWS RDS instance. These are low-level and provider-specific.

  2. Composite Resources (XRs), Your custom platform API. You define the schema (via XRDs) and the implementation (via Compositions). An XDatabase XR might create an RDS instance, a security group, a parameter group, and DNS records, all from a single manifest.

  3. Claims, Namespace-scoped requests for composite resources. Application teams create claims; platform teams define what claims provision.

The XRD (API Definition)

apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
 name: xdatabases.platform.example.com
spec:
 group: platform.example.com
 names:
 kind: XDatabase
 plural: xdatabases
 claimNames:
 kind: Database
 plural: databases
 versions:
 - name: v1alpha1
 served: true
 referenceable: true
 schema:
 openAPIV3Schema:
 type: object
 properties:
 spec:
 type: object
 properties:
 engine:
  type: string
  enum: ["postgres", "mysql"]
  description: "Database engine"
 engineVersion:
  type: string
  description: "Engine version (e.g., '15.4' for postgres)"
 size:
  type: string
  enum: ["small", "medium", "large"]
  description: "T-shirt size for the database instance"
 region:
  type: string
  default: "us-east-1"
  description: "AWS region"
 backupRetentionDays:
  type: integer
  default: 7
  minimum: 1
  maximum: 35
 required:
 - engine
 - engineVersion
 - size
 status:
 type: object
 properties:
 endpoint:
  type: string
 port:
  type: integer
 connectionSecretName:
  type: string

The Composition (Implementation)

apiVersion: apiextensions.crossplane.io/v1
kind: Composition
metadata:
 name: xdatabase-aws-postgres
 labels:
 provider: aws
 engine: postgres
spec:
 compositeTypeRef:
 apiVersion: platform.example.com/v1alpha1
 kind: XDatabase
 mode: Pipeline
 pipeline:
 - step: patch-and-transform
 functionRef:
 name: function-patch-and-transform
 input:
 apiVersion: pt.fn.crossplane.io/v1beta1
 kind: Resources
 resources:
 - name: rds-instance
 base:
 apiVersion: rds.aws.upbound.io/v1beta2
 kind: Instance
 spec:
 forProvider:
  engine: postgres
  allocatedStorage: 20
  publiclyAccessible: false
  storageEncrypted: true
  skipFinalSnapshot: false
  autoMinorVersionUpgrade: true
  dbSubnetGroupName: "platform-db-subnet-group"
  vpcSecurityGroupIds:
  - "sg-0abc123def456"
 deletionPolicy: Delete
 patches:
 - type: FromCompositeFieldPath
 fromFieldPath: spec.engineVersion
 toFieldPath: spec.forProvider.engineVersion
 - type: FromCompositeFieldPath
 fromFieldPath: spec.region
 toFieldPath: spec.forProvider.region
 - type: FromCompositeFieldPath
 fromFieldPath: spec.backupRetentionDays
 toFieldPath: spec.forProvider.backupRetentionPeriod
 # T-shirt size mapping
 - type: FromCompositeFieldPath
 fromFieldPath: spec.size
 toFieldPath: spec.forProvider.instanceClass
 transforms:
  - type: map
  map:
  small: db.t4g.micro
  medium: db.t4g.medium
  large: db.r6g.large
 # Write connection details to status
 - type: ToCompositeFieldPath
 fromFieldPath: status.atProvider.endpoint
 toFieldPath: status.endpoint
 - type: ToCompositeFieldPath
 fromFieldPath: status.atProvider.port
 toFieldPath: status.port

 - name: parameter-group
 base:
 apiVersion: rds.aws.upbound.io/v1beta1
 kind: ParameterGroup
 spec:
 forProvider:
  family: postgres15
  parameter:
  - name: log_min_duration_statement
  value: "1000"
  - name: shared_preload_libraries
  value: "pg_stat_statements"
 deletionPolicy: Delete

 - name: connection-secret
 base:
 apiVersion: kubernetes.crossplane.io/v1alpha2
 kind: Object
 spec:
 forProvider:
  manifest:
  apiVersion: v1
  kind: Secret
  metadata:
  namespace: "" # patched from claim namespace

The Claim (What App Teams Write)

apiVersion: platform.example.com/v1alpha1
kind: Database
metadata:
 name: orders-db
 namespace: orders-service
spec:
 engine: postgres
 engineVersion: "15.4"
 size: medium
 backupRetentionDays: 14

That's it. Five lines of meaningful configuration. The platform team controls everything else.

The Migration from Terraform

apiVersion: rds.aws.upbound.io/v1beta2
kind: Instance
metadata:
 name: orders-db-imported
 annotations:
 crossplane.io/external-name: "orders-db-prod"
spec:
 forProvider:
 region: us-east-1
 # ... matching existing configuration
 deletionPolicy: Orphan # CRITICAL during migration

What Went Wrong

# On the ControllerConfig for the provider
spec:
 args:
 - --poll-interval=5m
 - --max-reconcile-rate=50

4. Debugging is harder. When a Terraform apply fails, you get an error message and a plan diff. When a Crossplane reconciliation fails, the error is on a Kubernetes event on a managed resource that's nested inside a composite resource that was created by a claim. You need crossplane beta trace and kubectl describe through three layers of resources to find the actual error.

When to Consider Crossplane

Yes, but with caveats:

  1. Only if you're already on Kubernetes. Crossplane without Kubernetes makes no sense. If your org isn't running Kubernetes, use Terraform, Pulumi, or CDK.

  2. Only if you want a platform API. If you're a small team where everyone manages their own infra, Crossplane's abstraction layers are overhead. If you're a platform team serving 10+ application teams, the XRD/Composition model is genuinely powerful.

  3. Keep Terraform as a fallback. Use provider-terraform for any resource that the native Crossplane provider doesn't support well. Purism isn't worth production outages.

The Kubernetes ecosystem is moving toward treating infrastructure the same as applications, declarative manifests, GitOps reconciliation, and API-driven provisioning. Crossplane is the most mature tool in this space, and for organizations already invested in Kubernetes, it's the natural next step. Just go in with eyes open about the operational complexity you're taking on.

Editorial update (November 10, 2026): unsupported experience claims and numerical outcomes were removed. Examples are instructional.