O'Reilly logo

Google Cloud Platform Cookbook by Legorie Rajan PS

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required