# Pod IP CIDR limit with a few pods

**URL:** https://discuss.kubernetes.io/t/pod-ip-cidr-limit-with-a-few-pods/12906
**Category:** General Discussions
**Created:** [September 22, 2020, 8:09am UTC](https://discuss.kubernetes.io/t/pod-ip-cidr-limit-with-a-few-pods/12906 "2020-09-22T08:09:10Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Daniel\_Carrasco](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/daniel_carrasco/32/5906_2.png) [@Daniel\_Carrasco](https://discuss.kubernetes.io/u/Daniel_Carrasco)
#### Post date: [September 22, 2020, 8:09am UTC](https://discuss.kubernetes.io/t/pod-ip-cidr-limit-with-a-few-pods/12906/1 "2020-09-22T08:09:10Z")

</div>

### Cluster information:

Kubernetes version: 1.16.13-gke.1  
Cloud being used: GKE  
Installation method: Google deployment  
Host OS: COS from Google

Hello,

I have a question about IP addresses and pods. Yesterday I got an error telling me that the CIDR is too small. The CIDR has 2048 IP addresses and there are less than 30 pods on that cluster, so I want to know how IP addresses works, in order to know if maybe I’ve missconfigured something:  
 ![image (1)](https://us1.discourse-cdn.com/flex016/uploads/kubernetes/original/2X/9/964ee92a091ad0712b1b3d46645e1189d8dbb184.png)

Thanks!

---

<div class="post-metadata">

### Author: ![thockin](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/thockin/32/2457_2.png) [@thockin](https://discuss.kubernetes.io/u/thockin)
#### Post date: [September 22, 2020, 10:33pm UTC](https://discuss.kubernetes.io/t/pod-ip-cidr-limit-with-a-few-pods/12906/2 "2020-09-22T22:33:14Z")

</div>

Each node carves off a chunk of IPs. How big that chunk is is controlled by the “maximum pods per node” fields (a cluster default and a per-pool override). My guess is that you have the default 110, which allocates a /24 (256 IPs) per node, and you are trying to resize from 8 to 12 nodes?

---

<div class="post-metadata">

### Author: ![Daniel\_Carrasco](https://sea2.discourse-cdn.com/flex016/user_avatar/discuss.kubernetes.io/daniel_carrasco/32/5906_2.png) [@Daniel\_Carrasco](https://discuss.kubernetes.io/u/Daniel_Carrasco)
#### Post date: [September 23, 2020, 9:31am UTC](https://discuss.kubernetes.io/t/pod-ip-cidr-limit-with-a-few-pods/12906/3 "2020-09-23T09:31:11Z")

</div>

Hello,

I think that I’m starting to understand. Yes, I’ve the default setting of 110 max pods per node, and that’s what I didn’t know: K8s preallocates those ip addresses. Also the nodes number is 8 so surely is what you say. I’ll reduce that number, because the node that has the higher number of pods, have less than 20.

Thanks for all your help
