Soru

Zorluk: ZorPlanning Virtual Private Cloud (VPC) Networks and Subnets

An enterprise organization is designing a custom-mode Virtual Private Cloud (VPC) network in Google Cloud to support a multi-region deployment across `us-east4` and `europe-west3`. The VPC will connect to an existing on-premises data center via Cloud VPN with BGP dynamic routing over an on-premises IP block of 172.20.0.0/14172.20.0.0/14. Additionally, the team plans to deploy VPC-native Google Kubernetes Engine (GKE) clusters in both regions. Which TWO networking design choices are required to ensure proper IP allocation and prevent routing conflicts?

  1. Design subnets with primary IP ranges in each region that do not overlap with each other or with the 172.20.0.0/14172.20.0.0/14 on-premises CIDR block.Cevap
  2. Define separate, non-overlapping secondary IP ranges for GKE pods and services within each regional subnet.Cevap
  3. C
    Create the VPC network using auto-mode to ensure all regional subnets are automatically provisioned with globally unique IP addresses that avoid hybrid network collisions.
  4. D
    Reuse identical secondary CIDR blocks for pod aliases across both subnets to simplify cross-region pod routing within the global VPC network.

Cevap

The correct requirements are to design primary IP ranges in each region that do not overlap with each other or on-premises networks, and to define separate, non-overlapping secondary IP ranges for GKE pods and services within each regional subnet.
In custom-mode VPC networks connected to on-premises data centers, primary subnet IP ranges must be non-overlapping across regions and with on-premises CIDR blocks (172.20.0.0/14172.20.0.0/14) to enable accurate BGP route propagation over Cloud VPN. Furthermore, VPC-native GKE clusters rely on secondary subnet ranges for pods and services, which must be unique across all subnets to prevent internal IP conflicts within the global VPC network.

Adım Adım Çözüm

1
Analyze primary subnet IP space requirements for hybrid routing.
In a custom VPC connected to an on-premises network (172.20.0.0/14172.20.0.0/14), primary CIDR blocks for every regional subnet must be non-overlapping across the VPC and the on-premises network.
Overlapping primary CIDRs break dynamic routing (BGP over Cloud VPN) and prevent communication between GCP instances and on-premises hosts.
2
Evaluate secondary IP range requirements for VPC-native GKE clusters.
GKE pod and service ranges are configured as secondary IP ranges on subnets. Each regional subnet's secondary ranges must be distinct and non-overlapping across the global VPC.
VPC-native clusters assign alias IP addresses to pods from secondary ranges; overlapping secondary ranges lead to address collisions.
3
Reject invalid VPC creation modes and secondary range duplication.
Auto-mode VPCs use predefined CIDRs that conflict with enterprise networks, and duplicating secondary ranges across subnets creates duplicate IP routes.
Custom-mode VPC design is mandatory for enterprise hybrid setups.

Anahtar Kavram

VPC Subnet & Secondary Range IP Planning for Hybrid GKE Architectures
Tahmini Süre:2m 0s
Bu soruyu puanla