Understanding Virtual Private Clouds
The fundamental concept of the GCP network is a Virtual Private Cloud (VPC), which is also simply called a network. As you learned in Chapter 2, Getting Started with Google Cloud Platform, GCP can be divided into projects that logically isolate Google Cloud resources. Within a project, you can create multiple VPCs.
By default, up to five networks can be created per project (the quota can be extended by contacting support). Multiple VPCs make it possible to separate GCP resources such as VMs, containers, and so on at a network level. A VPC has a global scope, and it can span all GCP regions. To allow connectivity between VMs residing in different VPCs, you have two options: you can create a shared VPC or peer the VPCs. We will have a look at each option in detail later in this chapter.
Furthermore, the VPCs are divided into regional subnetworks, also known as subnets, that have associated IP ranges that are used to assign addresses to resources...