CNI Cloud

Node source address

CloudControlScopeSource leaving node
GCP--disable-default-snatPrivate GKE cluster (VPC_NATIVE)Node IP:
• --disable-default-snat — absent
• Target — outside GKE built-in no-SNAT list

Pod IP:
• --disable-default-snat — enabled

Pod IP:
• --disable-default-snat — absent
• Target — inside GKE built-in no-SNAT list

GKE built-in no-SNAT list:
[10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16, 100.64.0.0/10, 192.0.0.0/24, 192.0.2.0/24, 192.88.99.0/24, 198.18.0.0/15, 198.51.100.0/24, 203.0.113.0/24, 240.0.0.0/4]
GCPip-masq-agentStandard VPC_NATIVE or ROUTESNode IP:
• Target — outside nonMasqueradeCIDRs

Pod IP:
• Target — inside nonMasqueradeCIDRs
• --disable-default-snat — ignored
AWSVPC CNI defaultTarget inside VPC, outside Pod CIDRAlways Pod IP
AWS• AWS_VPC_K8S_CNI_EXTERNALSNAT
• AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS
Target outside VPCNode IP:
• AWS_VPC_K8S_CNI_EXTERNALSNAT=false
• Target — outside AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS

Pod IP:
• AWS_VPC_K8S_CNI_EXTERNALSNAT=false
• Target — inside AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS

Pod IP:
• AWS_VPC_K8S_CNI_EXTERNALSNAT=true
• AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS — ignored
AzureAzure CNI OverlayTarget outside clusterAlways Node IP
AzureAzure CNI Node SubnetPrivate network targetPod IP:
• Target — inside cluster VNet

Node IP:
• Target — outside cluster VNet
AzureAzure CNI Pod SubnetPrivate network targetPod IP:
• Preserved across connected VNets

IP allocation and routing

In every architecture below, traffic leaves the node with the Pod IP unless a node-SNAT case from the table above applies.

ENABLE_PREFIX_DELEGATIONEC2 worker ENI slotNode Pod-IP capacity
falseOne individual secondary IP
  • Instance type defines ENI count and slots per ENI
  • One primary IP consumes one slot on each ENI
  • Maximum: ENIs × (slots per ENI − 1)
trueOne /28 prefix from the subnet
  • Instance type defines ENI count and slots per ENI
  • One primary IP consumes one slot on each ENI
  • Maximum: ENIs × (slots per ENI − 1) × 16
  • A /22 contains 64 possible /28 blocks
  • Prefix allocation requires a contiguous /28 block
CloudArchitectureSettingsPod IP allocationRouting mechanismLimit
GCPVPC-native / Alias IP
  • networking_mode = "VPC_NATIVE"
  • ip_allocation_policy selects the Pod secondary range
Pod IP from the subnet secondary rangeGenerated subnet route carries the Pod rangeNon-overlapping Pod range sized for the planned nodes and Pods
GCPRoutes-based
  • networking_mode = "ROUTES"
  • cluster_ipv4_cidr
One /24 Pod range per node from cluster_ipv4_cidrOne GKE-created VPC route per node points its Pod range to that node
  • Static-route quota grows with node count
  • Cluster Pod range is fixed at creation
AWSNode subnet only + secondary IP
  • ENABLE_SUBNET_DISCOVERY=false
  • ENABLE_PREFIX_DELEGATION=false
Individual secondary ENI IP from the node subnetVPC routes the Pod IP directly to the owning ENI
  • Nodes and Pods consume the same subnet pool
  • Instance ENI and secondary-IP limits set Pod density
AWSEnhanced subnet discovery + secondary IP
  • ENABLE_SUBNET_DISCOVERY=true
  • ENABLE_PREFIX_DELEGATION=false
  • kubernetes.io/role/cni=1 on additional same-AZ Pod subnets
Individual secondary ENI IP from the node's primary subnet or a discovered Pod subnetVPC routes the Pod IP directly to the owning ENIInstance ENI and secondary-IP limits set Pod density
AWSEnhanced subnet discovery + prefix delegation
  • ENABLE_SUBNET_DISCOVERY=true
  • ENABLE_PREFIX_DELEGATION=true
  • kubernetes.io/role/cni=1 on additional same-AZ Pod subnets
Pod IP from a /28 prefix assigned to an ENIVPC routes the Pod IP directly to the ENI that owns the prefix
  • Nitro instance
  • Contiguous /28 blocks in the Pod subnet