Platform · Freelance
Kubernetes-Native Self-Service Infrastructure with Crossplane
Crossplane compositions let teams request S3, RDS and EKS through custom claims backed by Terraform modules and GitOps.
// Overview
The repo explores several patterns: direct managed resources, a composite definition with a composition and a namespaced bucket claim (region, ACL, versioning), and the Terraform provider using workspaces with inline and remote module sources and an S3 backend. Argo CD applications demonstrate GitOps with automated sync, prune and self-heal.
// The problem
A platform team wanted developers to provision cloud resources through a safe, standard Kubernetes API instead of running Terraform directly.
// Flow
- Provider setupAWS and Terraform provider configs
- XRDcomposite type, claim kind and validated parameter schema
- Compositionpatches map claim fields to a Terraform workspace
- Claimnamespaced request
- Terraform workspaceremote git module or inline HCL, state in S3
- Connection secretoutputs written back to a Kubernetes secret
- Argo CD gateautomated sync, prune and self-heal
// Design decisions & guardrails
- The claim hides Terraform details and fixes labels used for composition selection.
- Existing Terraform modules are reused rather than rewritten.
- Remote state per workspace; GitOps reconciliation.
// Outcome
A developer-facing API for infrastructure with platform-owned guardrails.