Unavailable private IP space for containers cluster

Problem

When you create a new composer enviroment, the following error message is shown in the Cloud Console view:

The network does not have available private IP space to reserve a /14 block for containers for cluster {CLUSTER_HASH}.

Environment

  • Cloud console

Solution

Use Cloud composer with a Shared Virtual Private Cloud, so Composer will use Virtual Private Cloud Native clusters and will allow to specify address ranges for your pods.

Cause

In Cloud Composer, all environments are provisioned with non-Virtual Private Cloud  native Google Kubernetes Engine clusters. Google Kubernetes Engine will attempt to allocate a /14 address range in the provided subnet. Most probably there is overlapping within the subnet, existing routes, etc., therefore the error message.