NOTE: This repo contains only the documentation for the private BoltsOps repo code. Original file: https://github.com/boltops-learn/terraspace-google-gke/blob/master/README.md The docs are publish so they are available for interested subscribers. For access to the source code, you can become a BoltOps subscriber. See: https://learn.boltops.com
This code creates a simple Google GKE Kubernetes cluster. It's meant to be a good starting point for learning and understanding how the Terraform google_container_cluster
resource works.
For testing it uses preemptible nodes and is a zonal cluster. It can be changed with app/stacks/gke/tfvars/dev.tfvars.
Terraspace Docs: Tfvars & Layering
You should configure these env vars:
- GOOGLE_PROJECT
- GOOGLE_REGION
To deploy:
terraspace up gke
This module was used to create the cluster in this video:
- BoltOps Learn: AWS EKS vs Azure AKS vs Google GKE