Giter Site home page Giter Site logo

urizafrir / crossplane-example Goto Github PK

View Code? Open in Web Editor NEW

This project forked from datalayer-examples/crossplane-example

0.0 0.0 0.0 151 KB

Curated example for Crossplane on Google Cloud.

Home Page: https://datalayer.blog/post/2021/05/16/crossplane-by-example

License: MIT License

Shell 14.05% JavaScript 10.50% Python 27.85% TypeScript 16.97% CSS 0.10% Makefile 17.94% HTML 6.39% Smarty 1.09% Dockerfile 5.11%

crossplane-example's Introduction

Datalayer

Crossplane Examples

This repository showcases different usecase for Crossplane on top of Google Cloud. It aims to complement the official Crossplane documentation to give step-by-step examples to deploy infrastructure and services on Google Cloud. It focuses on GCP but can be applied to other clouds like Amazon, Azure...

You can read more context about Crossplane on the companion blog post Crossplane by example.

Ensure you have credits to spend on GCloud to run these examples.

We have a first section with use case like setting-up the environment, deploying managed and composite resources as helm chart... We also have a second section where we build a custom React.js user interface interacting with a managed database.

We are trying to stick to some definitions:

  • Control cluster: The Kubernetes cluster that hosts the Crossplane operator, in our case a Kind cluster.
  • Managed resources: The managed infrastructure like Kubernetes clusters, databases, IAM roles... created by the Control cluster and running in the cloud.
  • Workload cluster: The Kubernetes managed clusters created by the Control cluster and running in the cloud.

Use Cases

You are expected to start from step 1 and follow-up step by step until the end. If you jump directly to a specific step, ensure your environment, including the shell environment variables, are set as expected.

Step 1: Create GCloud Project.

Step 2: Create a Control Cluster.

Step 3: Create a GCP Provider on the Control Cluster

Step 4: Create GCP managed Resources.

Step 5: Deploy Helm Releases.

Step 6: Deploy a Composition.

Step 7: Deploy a Reference Platform.

Step 8: Deploy a Wordpress Cluster.

Step 9: Destroy.

How to Troubleshoot if needed, hopefully not too much.

Custom Web User Interface

Build and deploy a UI to insert and view a list of rows from a Postgresql table deployed on GCP. Follow these instructions to get the following UI in your browser.

Bare Minimum Setup

Assuming you have a created a GCloud project and created a Control cluster, the bare minimun to run is the following.

./sbin/create-kind.sh
./sbin/crossplane-gcp-min.sh <YOUR_RANDOM_PROJECT_NUMBER>

crossplane-example's People

Contributors

echarles avatar urizafrir avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.