This project contains all required infrastructure work for Kubernetes through Terraform. This example leverages an existing Terraform module from the terraform module registry: kubernetes-engine
In order to use this project to create a Kubernetes cluster, you'll need to:
- activate the GKE API for your Google cloud project: https://console.developers.google.com/apis/api/container.googleapis.com/overview
- create a service account and API key for using the GKE API (JSON)
- put the downloaded API Key JSON file in this project (as account.json). NOTE: do not add it to your git repository
Execute the following statements:
Initialize the terraform project:
terraform init
Preview of resources that will be created via Terraform:
terraform plan
Resource creation via Terraform:
terraform apply