Skip to content

Latest commit

 

History

History
77 lines (54 loc) · 2.4 KB

README.md

File metadata and controls

77 lines (54 loc) · 2.4 KB

Crossplane Blueprint examples

This folder contains examples for deploying AWS resources using the following providers

Pre-requisites:

  • EKS Cluster bootstrap deployment
  • Crossplane deployment in bootstrap cluster
  • AWS Provider and Terrajet AWS Provider deployment
  • ProviderConfig deployment with injected identity

Follow these links to bootstrap the cluster

Option1 - AWS Provider

The following steps demonstrates VPC example composition deployment with AWS Provider

Deploy Composition and XRD

Deploys VPC Composition file and XRD definition file

kubectl apply -f compositions/aws-provider/vpc

Deploy Application example

Deploys VPC claim resource which uses the above composition.

kubectl apply -f examples/aws-provider/composite-resources/vpc/vpc.yaml

Option2: Jet AWS Provider

The following steps demonstrates VPC example composition deployment with Jet AWS Provider

Deploy Composition and XRD

Deploys VPC Composition file and XRD definition file

kubectl apply -f compositions/terrajet-aws-provider/vpc

Deploy Application example

Deploys VPC claim resource which uses the above composition.

kubectl apply -f examples/terrajet-aws-provider/composition-resources/vpc.yaml

Option3: Deploy Managed resource for AWS Provider

The following shows the deployment of VPC using AWS Provider

kubectl apply -f examples/aws-provider/managed-resources/vpc.yaml

# Verify the resource. When provisioning is complete, you should see READY: True in the output
kubectl get VPC aws-provider-vpc

Crossplane Kubernetes Provider

The following example shows the creation of Namespace with Crossplane Kuberentes provider

Note: Kubernetes Provider should be deployed as a pre-requisite for this example. Terraform and eksctl bootstrap scripts deploys kubernetes provider in EKS Cluster.

kubectl apply -f examples/kubernetes-provider/test-namespace.yaml

# Verify the resource
kubectl get namespaces  

NAME                        STATUS   AGE
crossplane-test-namespace   Active   81s