Create Managed Resources using Crossplane Composite

Muhammad Mustafa
9 min readFeb 11, 2024

Hello! In this tutorial we are going to learn about how to use Crossplane to create and manage multiple managed resources using Compositions.

What are Managed Resources ?

Managed Resources (MR) are resources that are managed by Crossplane eg S3 Bucket, IAM User and Access Key created in previous tutorials.

Crossplane Compositions

Compositions allows us to create multiple managed resources as a single Kubernetes object. They are similar to modules in terraform as they combine a group of resources together and provide a simpler and consistent way to use them. You can also use them to enforce organization standards such as only creating S3 buckets that are private etc.

Making compositions is a two-step process. Here's what you do:

1. Composite resource definitions (XRDs) define the schema for a custom API.

2. Compositions define the resources to create in response to the creation of instance of Composite Resource Definitions or XRs.

Setup

We will be using minikube for demonstrating this tutorial, Make sure to install Crossplane and apply the Provider and ProviderConfig manifests.

--

--

Muhammad Mustafa
Muhammad Mustafa

Written by Muhammad Mustafa

DevOps Engineer working on Kubernetes, Openshift, ArgoCD, Crossplane, Terraform, AWS, Github Actions https://www.linkedin.com/in/muhammad-mustafa-41576b1a4/

No responses yet