Code Monkey home page Code Monkey logo

crossplane_gke's Introduction

What is Crossplane

  1. Crossplane is an open source Kubernetes add-on that enables platform teams to assemble infrastructure from multiple vendors.
  2. Expose higher level self-service APIs for application teams to consume, without having to write any code.
  3. Provisioned and managed by kubectl, GitOps, or any tools that can talk with the Kubernetes API.

Prerequisites

For macOS / Linux / Windows use the following:

  • Kubernetes cluster
    • Kind
    • Minikube, minimum version v0.28+
    • etc.
  • Helm, minimum version v3.0.0+.

Installing Crossplane

  1. Create namespace.
kubectl create namespace crossplane-system
  1. Add Helm Chart.
helm repo add crossplane-stable https://charts.crossplane.io/stable
helm repo update
  1. Install crossplane using helm.
helm install crossplane --namespace crossplane-system crossplane-stable/crossplane
  1. Check the status.
helm list -n crossplane-system
kubectl get all -n crossplane-system

Install Crossplane CLI

  1. Install Crossplane CLI using script.
curl -sL https://raw.githubusercontent.com/crossplane/crossplane/master/install.sh | sh

Install Provider

  1. Install GCP provider version 0.18.0 (latest) using crossplane CLI.
kubectl crossplane install provider crossplane/provider-gcp:v0.18.0
  1. Check the status.
kubectl get pkg

NOTE: Wait until it becomes healthy

Get GCP Account Keyfile

  1. Run the script.
./gcp-sa-script.sh

Note: Change the PROJECT_ID and SA_NAME according to usage

Create a Provider Secret

  1. Use the following command to create kubernetes secret from service account JSON file.
kubectl create secret generic gcp-creds -n crossplane-system --from-file=creds=./creds.json

Configure the Provider

  1. We will create the ProviderConfig object to configure credentials for GCP Provider.
  2. Run the provider.sh script
./provider.sh

Note: Change the PROJECT_ID according to usage

Provision Infrastructure

  1. Create VPC Network
kubectl apply -f network.yaml
  1. Create subnetwork
kubectl apply -f subnetwork.yaml
  1. Create GKE Cluster
kubectl apply -f cluster.yaml
kubectl apply -f nodepool.yaml

LINKS:

  1. Crossplane official Document: https://crossplane.io/

crossplane_gke's People

Contributors

abhivaidya07 avatar abhivaidya-searce 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.