shlogg · Early preview
Mkdev.me @mkdev_me

Installing GKE Clusters With Terraform: A Step-by-Step Guide

Install GKE cluster with Terraform using 2 repos: HashiCorp & Google samples. Configure VPC, subnetworks, node pools & service accounts.

Today, we are going to see how to install a GKE cluster, a Google Kubernetes cluster, with Terraform, and we are going to use two repositories.

The first one is this HashiCorp Terraform repo that we can see on the screen, which is based essentially on three files. We have this GKE file, the one that you see on the screen. We also have another file called terraform.tfvars, where we only have a placeholder to replace our project.

After that, we have the third file called vpc.tf, where we are going to create a VPC and a subnetwork.

This cluster is going to be different from the next one becaus...