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.
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.
- A Google Cloud project
glcoud
CLI- An existing GKE cluster (Crossplane will be installed here)
- The
envsubst
tool installed on your local machine
Replace the values in <...>
with your own values, and save.
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