November 2019
Intermediate to advanced
398 pages
9h 5m
English
If you reached this far, it means that you prefer running your cluster in GKE, or that you are so curious that you prefer trying all three ways to create VMs that will be used to build container images. No matter the reason, we're about to create a GCE image and Jenkins to spin up VMs when needed and destroy them when they're not in use.
Before we do anything related to GCE, we need to authenticate.
1 gcloud auth login
Next, we need to create a service account that can be used by Packer to create GCE images.
1 gcloud iam service-accounts \ 2 create jenkins
The output is as follows.
Created service account [jenkins].
We'll also need to know the ...