Description
A VPC-native GKE cluster assigns Pod IPv4 addresses from a secondary subnet range. If an older template omits the allocation settings, check ipAllocationPolicy on the actual cluster.
Potential impact
Too few addresses can prevent new nodes or Pods from starting. Overlap with a connected network can interrupt traffic.
Remediation
For a new cluster, set ipAllocationPolicy.useIpAliases: true. Size VPC subnet ranges for the expected nodes and Pods, then check the ranges GKE assigned. To move from routes-based networking, migrate workloads to a new cluster and test connectivity and access policies before switching traffic.
Examples
These historical Deployment Manager excerpts show part of a GKE request body. Standard support for Deployment Manager has ended. Use a supported tool for new deployments.
Before
name: cluster
description: my-cluster
After
name: cluster
description: my-cluster
ipAllocationPolicy:
useIpAliases: true
The second excerpt requests alias IPs. Use firewall rules and NetworkPolicy separately to restrict workload traffic.