Skip to content

Example repo demonstrating how to create a Kubernetes cluster in Google Cloud using Crossplane.

License

Notifications You must be signed in to change notification settings

d0-labs/crossplane-gke

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Using Crossplane to provision a GKE cluster

Tutorial

For the full tutorial on how to use Crossplane to create a GKE cluster, check out our blog post on Medium.

Be sure to also check out our post on Shifting from Infrastructure as Code to Infrastructure as Data.

Quickstart

This code creates installs Crossplane on an existing GKE cluster, and provisions a new GKE cluster using Crossplane.

Feel free to skip running 1-gcp_config.sh if you're installing Crossplane elsewhere.

Pre-requisites

  • A Google Cloud project
  • glcoud CLI
  • An existing GKE cluster (Crossplane will be installed here)
  • The envsubst tool installed on your local machine

1- Update the env_vars.sh file

Replace the values in <...> with your own values, and save.

2- Run the scripts

Run the following script files to:

  • Install Crossplane on an existing Kubernetes cluster in Google Cloude
  • Create configure the Crossplane GCP Provider
  • Provision a new GKE Cluster and Node Pool using Crossplane
./scripts/1-gcp_config.sh
./scripts/2-install_crossplane.sh
./scripts/3-configure_gcp_provider.sh
./scripts/4-create_gke_cluster.sh

References

About

Example repo demonstrating how to create a Kubernetes cluster in Google Cloud using Crossplane.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages