An OpenShift Pod subnet experiences IP address exhaustion, resulting in a failure to assign IP addresses to newly provisioned pods.
The Antrea agent logs (antrea-agent-ubi) display the following error indicating IP exhaustion: Failed to request IP addresses for container...
failed to allocate for range 0: no IP addresses available in range set:
The configured IP pool for the OpenShift cluster is undersized for the requested pod scale, causing IP address depletion within the defined subnet range for the Antrea CNI.
Note: As this involves third-party configuration (Red Hat OpenShift/Antrea CNI), VMware by Broadcom Support does not actively troubleshoot or alter this environment. Please consult Red Hat documentation for exact syntax on expanding IP pools, For further assistance with Antrea CNI and OpenShift IP pool sizing, engage Red Hat Support.
Verify the current IP pool allocation within the OpenShift cluster and identify the exhausted subnet.
Expand the IP pool configuration within the Red Hat OpenShift environment to accommodate the required pod scale.
Alternatively, redeploy the affected pods utilizing a newly defined, larger subnet range.