14
Containerize on Google Cloud – Building Solutions with GKE
In the previous chapter, we built and automated our solution on Google Cloud by utilizing Google Compute Engine (GCE). We built virtual machine (VM) images with Packer and provisioned our VM using Terraform. In this chapter, we’ll follow a similar path, but instead of working with VMs, we’ll look at hosting our application in containers within a Kubernetes cluster.
To achieve this, we’ll need to alter our approach by ditching Packer and replacing it with Docker to create a deployable artifact for our application. Once again, we’ll be using the google provider for Terraform and revisiting the kubernetes provider for Terraform that we looked at when we took the same step while on our ...
Get Mastering Terraform now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.