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:
- 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.
- Navigate to the Chapter06/deploymgr folder and view the vm_with_2disks.yaml file. In the first resource section, we will create two data ...