How to do it...

Let's say that organization ABC has a standard practice to keep the application data stored in a non-boot disk and local databases saved in another separate non-boot disk. In this recipe, we'll create an instance with two additional non-boot disks using a simple YAML template and a Jinja template:

  1. To create an instance with two additional disk on the GCP Console or gcloud command, we'll first have to create the persistent disks separately and then include the created disks in the instance create command. Similarly, in the deployment template, we'll first create the two persistent disks.
  2. Navigate to the Chapter06/deploymgr folder and view the vm_with_2disks.yaml file. In the first resource section, we will create two data ...

Get Google Cloud Platform Cookbook 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.