4 ways to interact with GCP
Projects and networks
Project
- Associate objects and services with billing
- Contain networks(5 by default) that can be shared/peered
Network
- Has no IP address range
- Is global and spans all available regions
- Contains subnetworks
- Is available as default, auto or custom
3 VPC network types
The projects can communicate over internal IPs when they are in the same network even though they are in different regions.
They can not communicate over internal IPs when they are in different networks even though they are in the same region
Subnetworks cross zones
- VMs can be on the same subnet but in different zones
- A single firewall rule can apply to both VMs
Expand subnets
- Cannot overlap with other subnets
- Can expand but not shrink
- Avoid large subnets
Internal and External Ip address
Every VM need an internal ip address but the external ip address is optional and by default it is ephemeral