January 2019
Intermediate to advanced
484 pages
11h 48m
English
GCE also has a storage service called Persistent Disk (PD) that's quite similar to AWS EBS. You can allocate the desired size and types (either standard or SSD) on each zone and attach/detach VM instances anytime.
Let's create one PD and then attach it to the VM instance. Note that, when attaching a PD to the VM instance, both must be in the same zones. This limitation is the same as AWS EBS. So, before creating PD, check the VM instance location once again:
$ gcloud compute instances listNAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUSpublic-on-subnet-b us-east1-c f1-micro 172.16.1.2 35.196.228.40 RUNNINGprivate-on-subnet-a us-west1-a g1-small 10.0.1.2 104.199.121.234 RUNNINGpublic-on-subnet-a us-west1-a ...
Read now
Unlock full access