The purpose of this project is to bootstrap a GKE cluster with Terraform, with the ability to do gitops for developers in minutes.
- Service Account JSON File: Ensure you have a service account JSON file named
service-account.json
in the project directory to authenticate with Google Cloud.
-
Generate Terraform Variables:
- Run the
generate_vars.sh
script to create theterraform.tfvars
file with yourproject_id
andregion
.
./generate_vars.sh
- Run the
-
Deploy the Infrastructure:
- Run the
deploy.sh
script to deploy the GKE cluster using Terraform.
./deploy.sh
- Run the
If you prefer to create the terraform.tfvars
file manually, add the following variables:
project_id = "<project_id>"
region = "<region>"