Skip to Main Content
The DevOps 2.4 Toolkit
book

The DevOps 2.4 Toolkit

by Viktor Farcic
November 2019
Intermediate to advanced content levelIntermediate to advanced
398 pages
9h 5m
English
Packt Publishing
Content preview from The DevOps 2.4 Toolkit

Creating Google Cloud Engine (GCE) images

This section is appropriate for those using GKE.

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 ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The DevOps 2.2 Toolkit

The DevOps 2.2 Toolkit

Viktor Farcic

Publisher Resources

ISBN: 9781838643546Supplemental Content