Cloud Expert
Crossplane — Kubernetes-Native IaC¶
CrossplaneKubernetesIaCGitOps 5 min read
Crossplane compositions, claims, XRDs and GitOps workflow.
Why Crossplane¶
- K8s API for infrastructure (kubectl, RBAC, GitOps)
- Compositions = custom platform API
- Multi-cloud, self-service for developers
Composition and Claim¶
# XRD defines the API
apiVersion: apiextensions.crossplane.io/v1
kind: CompositeResourceDefinition
metadata:
name: xdatabases.platform.example.com
spec:
claimNames:
kind: Database
---
# Claim — developer orders a DB
apiVersion: platform.example.com/v1alpha1
kind: Database
metadata:
name: my-app-db
spec:
engine: postgres
size: medium
GitOps¶
Crossplane + ArgoCD = fully declarative infra via Git. Claims in the repo, ArgoCD syncs, Crossplane provisions.
Summary¶
Crossplane = the future of IaC for K8s-native organizations. Compositions = platform API.
Need Help with Implementation?¶
Our team has experience designing and implementing modern architectures. We’re happy to help.