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.

  • Crossplane
  • provider-terraform
  • provider-aws
  • Terraform
  • Argo CD
  • EKS
  • RDS
  • S3

// 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

Kubernetes-Native Self-Service Infrastructure with Crossplane flow1. Provider setup → 2. XRD → 3. Composition → 4. Claim → 5. Terraform workspace → 6. Connection secret → 7. Argo CD01Provider setup02XRD03Composition04Claim05Terraform workspace06Connection secret07 · GATEArgo CD
  1. Provider setupAWS and Terraform provider configs
  2. XRDcomposite type, claim kind and validated parameter schema
  3. Compositionpatches map claim fields to a Terraform workspace
  4. Claimnamespaced request
  5. Terraform workspaceremote git module or inline HCL, state in S3
  6. Connection secretoutputs written back to a Kubernetes secret
  7. 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.

// Related