Deploying GKE Using Public Modules
In Chapter 4, Writing Reusable Code Using Modules, we introduced modules and public registries. In this chapter, we will learn how to effectively use modules from the public Terraform Registry to build a complete architecture. We will see how we can deploy complex architectures quickly by utilizing public modules. In particular, we use two of the most popular Google Cloud modules from the Terraform Registry – the network
and kubernetes-engine
modules.
In this chapter, we will learn how to use modules from the public registry and use Terraform workspaces to provision two independent environments by doing the following:
- Developing a variable strategy
- Provisioning a network using a public Terraform module
- Provisioning a GKE cluster using a public Terraform module
- Using workspaces to provision deploy development and production environments