Technical requirements
In this chapter, we are provisioning a Google Kubernetes Engine (GKE) cluster. It helps to have a basic understanding of Kubernetes and GKE. We will deploy two independent GKE clusters in two different environments. We recommend using two projects for the two environments; however, you can also use a single project if you prefer. As in the previous two chapters, running Terraform in the cloud shell is easier, as we don’t need to set up a Terraform service account and its IAM permission to provision the resources in both projects.
Please note that we will provision two GKE clusters with several VMs that incur costs. Depending on your quotas, you might not be able to have both GKE clusters running simultaneously in a single project.
After the exercise, it is important to destroy all the resources in both environments and access the web console to confirm that all VMs are removed.
The code for this chapter can be found here: https://github.com/PacktPublishing...