CNI Cloud
Node source address
| Cloud | Control | Scope | Source leaving node |
|---|---|---|---|
| GCP | --disable-default-snat | Private GKE cluster (VPC_NATIVE) | Node IP: • --disable-default-snat — absent• Target — outside GKE built-in no-SNAT list Pod IP: • --disable-default-snat — enabledPod 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] |
| GCP | ip-masq-agent | Standard VPC_NATIVE or ROUTES | Node IP: • Target — outside nonMasqueradeCIDRsPod IP: • Target — inside nonMasqueradeCIDRs• --disable-default-snat — ignored |
| AWS | VPC CNI default | Target inside VPC, outside Pod CIDR | Always Pod IP |
| AWS | • AWS_VPC_K8S_CNI_EXTERNALSNAT• AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS | Target outside VPC | Node IP: • AWS_VPC_K8S_CNI_EXTERNALSNAT=false• Target — outside AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRSPod IP: • AWS_VPC_K8S_CNI_EXTERNALSNAT=false• Target — inside AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRSPod IP: • AWS_VPC_K8S_CNI_EXTERNALSNAT=true• AWS_VPC_K8S_CNI_EXCLUDE_SNAT_CIDRS — ignored |
| Azure | Azure CNI Overlay | Target outside cluster | Always Node IP |
| Azure | Azure CNI Node Subnet | Private network target | Pod IP: • Target — inside cluster VNet Node IP: • Target — outside cluster VNet |
| Azure | Azure CNI Pod Subnet | Private network target | Pod 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_DELEGATION | EC2 worker ENI slot | Node Pod-IP capacity |
|---|---|---|
false | One individual secondary IP |
|
true | One /28 prefix from the subnet |
|
| Cloud | Architecture | Settings | Pod IP allocation | Routing mechanism | Limit |
|---|---|---|---|---|---|
| GCP | VPC-native / Alias IP |
| Pod IP from the subnet secondary range | Generated subnet route carries the Pod range | Non-overlapping Pod range sized for the planned nodes and Pods |
| GCP | Routes-based |
| One /24 Pod range per node from cluster_ipv4_cidr | One GKE-created VPC route per node points its Pod range to that node |
|
| AWS | Node subnet only + secondary IP |
| Individual secondary ENI IP from the node subnet | VPC routes the Pod IP directly to the owning ENI |
|
| AWS | Enhanced subnet discovery + secondary IP |
| Individual secondary ENI IP from the node's primary subnet or a discovered Pod subnet | VPC routes the Pod IP directly to the owning ENI | Instance ENI and secondary-IP limits set Pod density |
| AWS | Enhanced subnet discovery + prefix delegation |
| Pod IP from a /28 prefix assigned to an ENI | VPC routes the Pod IP directly to the ENI that owns the prefix |
|
