Pod IP Block exhaustion can occur when there're no more available Subnets associated to the Pod IP Block CIDR configured for the TKGi cluster.
Every time a Namespace is created in a cluster, a new Subnet within the Pod IP Block CIDR will be created for that Namespace.
If a Subnet is exhausted and you create a pod in the corresponding Namespace, NCP will automatically create a new Subnet and assign an IP from it to the pod. If the pod is deleted, then this extra Subnet will get deleted too (if no more pods exist in the new Namespace).
General information on Pod IP Block can be found in the following references:
Too many Namespaces in the cluster, exhausting the available Subnets within the Pod IP Block associated to the cluster.
To expand the Pod IP Block in a TKGi cluster, we can apply a network-profile to the cluster and configure the pod_ip_block_ids field.
Follow the steps outlined in the Docs Add Pod IPs.
Notes:
{
"description": "Example network profile for adding pod IP addresses to an existing cluster",
"name": "pod-ips-add",
"parameters": {
"pod_ip_block_ids": [
"<existing_pod_ip_block_ids>",
"<new_pod_ip_block_ids>"
]
}
}
{
"description": "Example network profile for adding pod IP addresses to an existing cluster",
"name": "pod-ips-add",
"parameters": {
"pod_ip_block_ids": [
"<new_pod_ip_block_ids>",
"<existing_pod_ip_block_ids>"
]
}
}