How it works...
In step 1, we have supplied credentials, network name, subnet name, IP range and region. Now we have a network named my-network and a subnet within that named public-subnet. GCE instances, by default, start up with an ephemeral external public IP. However, that IP can change between instance reboot which might not be desirable at times. We can request a static external IP and attach it to our instance and we did so in step 2. We booted an instance in step 3. For that we had to specify a name for the instance. We booted an f1-micro instance running CentOS 7 with a 15 GB disk attached to it. We also specified tags which would help us in organizing our instances as well as in managing firewall rules. The metadata helps to specify ...
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.
Read now
Unlock full access