failed to allocate for range 0: no IP addresses available in range set: 172.20.xx.1-172.20.xx.254
今天遇到一个机器上的Pod 在创建以后一直处于Init 0/1的状态,进到这个节点查看其kubelet的状态,发现果然有问题
systemctl status kubelet
.go:] Container "1a7183767162740ba734e2c4b880e2937af1680e15fb1a7d66dc7e48fe0ca68c" not found in pod's containers
RunPodSandbox from runtime service failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up pod "ts-train-mongo-7f6f6668bd-rn2n4_default" network: failed to allocate f
o:] CreatePodSandbox for pod "ts-train-mongo-7f6f6668bd-rn2n4_default(1264e4b7-fd27-11e8-aa60-525400c4f9f5)" failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up
o:] createPodSandbox for pod "ts-train-mongo-7f6f6668bd-rn2n4_default(1264e4b7-fd27-11e8-aa60-525400c4f9f5)" failed: rpc error: code = Unknown desc = NetworkPlugin cni failed to set up
rror syncing pod 1264e4b7-fd27-11e8-aa60-525400c4f9f5 ("ts-train-mongo-7f6f6668bd-rn2n4_default(1264e4b7-fd27-11e8-aa60-525400c4f9f5)"), skipping: failed to "CreatePodSandbox" for "ts-tra
o:] No ready sandbox for pod "ts-order-other-service-78d5ff8b57-2k6gf_default(830f4782-fd27-11e8-aa60-525400c4f9f5)" can be found. Need to start a new one
o:] No ready sandbox for pod "ts-station-service-c9ff7c7b7-pkpt9_default(9a9c5010-fd27-11e8-aa60-525400c4f9f5)" can be found. Need to start a new one
o:] No ready sandbox for pod "ts-preserve-service-7b95474f77-8l4jw_default(88bc030d-fd27-11e8-aa60-525400c4f9f5)" can be found. Need to start a new one
ing network: failed to allocate for range : no IP addresses available in range set: 172.20.5.1-172.20.5.254
le adding to cni network: failed to allocate for range : no IP addresses available in range set: 172.20.5.1-172.20.5.254
提示200多个IP都被用完了,这什么情况
/var/lib/cni/networks/cbr0# ls
172.20.5.10 172.20.5.118 172.20.5.136 172.20.5.154 172.20.5.172 172.20.5.190 172.20.5.208 172.20.5.226 172.20.5.244 172.20.5.33 172.20.5.51 172.20.5.7 172.20.5.88
172.20.5.100 172.20.5.119 172.20.5.137 172.20.5.155 172.20.5.173 172.20.5.191 172.20.5.209 172.20.5.227 172.20.5.245 172.20.5.34 172.20.5.52 172.20.5.70 172.20.5.89
172.20.5.101 172.20.5.12 172.20.5.138 172.20.5.156 172.20.5.174 172.20.5.192 172.20.5.21 172.20.5.228 172.20.5.246 172.20.5.35 172.20.5.53 172.20.5.71 172.20.5.9
172.20.5.102 172.20.5.120 172.20.5.139 172.20.5.157 172.20.5.175 172.20.5.193 172.20.5.210 172.20.5.229 172.20.5.247 172.20.5.36 172.20.5.54 172.20.5.72 172.20.5.90
172.20.5.103 172.20.5.121 172.20.5.14 172.20.5.158 172.20.5.176 172.20.5.194 172.20.5.211 172.20.5.23 172.20.5.248 172.20.5.37 172.20.5.55 172.20.5.73 172.20.5.91
172.20.5.104 172.20.5.122 172.20.5.140 172.20.5.159 172.20.5.177 172.20.5.195 172.20.5.212 172.20.5.230 172.20.5.249 172.20.5.38 172.20.5.56 172.20.5.74 172.20.5.92
172.20.5.105 172.20.5.123 172.20.5.141 172.20.5.16 172.20.5.178 172.20.5.196 172.20.5.213 172.20.5.231 172.20.5.25 172.20.5.39 172.20.5.57 172.20.5.75 172.20.5.93
172.20.5.106 172.20.5.124 172.20.5.142 172.20.5.160 172.20.5.179 172.20.5.197 172.20.5.214 172.20.5.232 172.20.5.250 172.20.5.4 172.20.5.58 172.20.5.76 172.20.5.94
172.20.5.107 172.20.5.125 172.20.5.143 172.20.5.161 172.20.5.18 172.20.5.198 172.20.5.215 172.20.5.233 172.20.5.251 172.20.5.40 172.20.5.59 172.20.5.77 172.20.5.95
172.20.5.108 172.20.5.126 172.20.5.144 172.20.5.162 172.20.5.180 172.20.5.199 172.20.5.216 172.20.5.234 172.20.5.252 172.20.5.41 172.20.5.6 172.20.5.78 172.20.5.96
172.20.5.109 172.20.5.127 172.20.5.145 172.20.5.163 172.20.5.181 172.20.5.2 172.20.5.217 172.20.5.235 172.20.5.253 172.20.5.42 172.20.5.60 172.20.5.79 172.20.5.97
172.20.5.11 172.20.5.128 172.20.5.146 172.20.5.164 172.20.5.182 172.20.5.20 172.20.5.218 172.20.5.236 172.20.5.254 172.20.5.43 172.20.5.61 172.20.5.8 172.20.5.98
172.20.5.110 172.20.5.129 172.20.5.147 172.20.5.165 172.20.5.183 172.20.5.200 172.20.5.219 172.20.5.237 172.20.5.26 172.20.5.44 172.20.5.62 172.20.5.80 172.20.5.99
172.20.5.111 172.20.5.13 172.20.5.148 172.20.5.166 172.20.5.184 172.20.5.201 172.20.5.22 172.20.5.238 172.20.5.27 172.20.5.45 172.20.5.63 172.20.5.81 172.20.6.197
172.20.5.112 172.20.5.130 172.20.5.149 172.20.5.167 172.20.5.185 172.20.5.202 172.20.5.220 172.20.5.239 172.20.5.28 172.20.5.46 172.20.5.64 172.20.5.82 last_reserved_ip.
172.20.5.113 172.20.5.131 172.20.5.15 172.20.5.168 172.20.5.186 172.20.5.203 172.20.5.221 172.20.5.24 172.20.5.29 172.20.5.47 172.20.5.65 172.20.5.83 lock
172.20.5.114 172.20.5.132 172.20.5.150 172.20.5.169 172.20.5.187 172.20.5.204 172.20.5.222 172.20.5.240 172.20.5.3 172.20.5.48 172.20.5.66 172.20.5.84
172.20.5.115 172.20.5.133 172.20.5.151 172.20.5.17 172.20.5.188 172.20.5.205 172.20.5.223 172.20.5.241 172.20.5.30 172.20.5.49 172.20.5.67 172.20.5.85
172.20.5.116 172.20.5.134 172.20.5.152 172.20.5.170 172.20.5.189 172.20.5.206 172.20.5.224 172.20.5.242 172.20.5.31 172.20.5.5 172.20.5.68 172.20.5.86
172.20.5.117 172.20.5.135 172.20.5.153 172.20.5.171 172.20.5.19 172.20.5.207 172.20.5.225 172.20.5.243 172.20.5.32 172.20.5.50 172.20.5.69 172.20.5.87
##flannel创建了很多文件
/var/lib/cni/flannel# ls | wc ; date
解决方案
rm -rf /var/lib/cni/flannel/* && rm -rf /var/lib/cni/networks/cbr0/* && ip link delete cni0
rm -rf /var/lib/cni/networks/cni0/*
failed to allocate for range 0: no IP addresses available in range set: 172.20.xx.1-172.20.xx.254的更多相关文章
- "cni0" already has an IP address different from 10.244.2.1/24。 Error while adding to cni network: failed to allocate for range 0: no IP addresses available in range set: 10.244.2.1-10.244.2.254
"cni0" already has an IP address different from 10.244.2.1/24. Error while adding to cni n ...
- Android ADT中增大AVD内存后无法启动:emulator failed to allocate memory 8 (转)
Android ADT中增大AVD内存后无法启动:emulator failed to allocate memory 8http://www.crifan.com/android_emulator_ ...
- 03_已解决 [salt.master :2195][ERROR ][6219] Failed to allocate a jid. The requested returner 'mysql' could not be loaded.
总结: 对于python2.7环境下的salt来说,要安装pip install mysql-python 对于python3环境下的salt来说,pip install mysqlclient的时候 ...
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
某天,Android 启动模拟器是出现“Failed to allocate memory: 8”错误,模拟器无法启动,如下图: 原因:设置了不正确AVD显示屏模式,4.0版默认的模式为WVGA800 ...
- Failed to allocate the network(s), not rescheduling
Failed to allocate the network(s), not rescheduling 在计算节点的/etc/nova/nova.conf中添加下面两句 #Fail instance ...
- 关于阿里云ESC上go语言项目编译6l: running gcc failed: Cannot allocate memory
(1)前段时间将自己的阿里云服务器上的系统由centos 6.5换为了ubuntu 14,其他的硬件配置都没有发生改变,将服务器上的数据恢复并且重新安装了golang的编译环境后,发现使用go bui ...
- Asterisk 11 chan_sip.c: Failed to authenticate device 看不到IP的问题
Asterisk 11 chan_sip.c: Failed to authenticate device 看不到IP的问题 没有验证过 原文地址 http://www.coochey.net/? ...
- zabbix-Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Connection refused
监控zabbix服务端这台服务器,然后显示Get value from agent failed: cannot connect to [[127.0.0.1]:10050]: [111] Conne ...
- fork failed.: Cannot allocate memory
在做压力测试时候: [root@666 ok]# webbench -c 5000 -t30 http://10.100.0.61/ Webbench - Simple Web Benchmark 1 ...
随机推荐
- Windows Azure 配置Active Directory 主机(1)
现在越来越多企业将自己业务系统迁移云端,方便公司日常运维管理.这篇文章将简单介绍一下,从 Windows Azure 虚拟网络上的虚拟机 (VM) 中的 Corp Active Directory 林 ...
- 浅谈iOS学习之路
转眼学习iOS已经快两年的时间了,这个路上有挫折也有喜悦,一步步走过来发现这个过程是我这一辈子的财富,我以前的老大总是对我说,年轻就是最大的资本(本人91年),现在才算是慢慢的体会到,反观自己走过的这 ...
- Codeforces Round #320 (Div. 1) [Bayan Thanks-Round] C A Weakness and Poorness (三分)
显然f(x)是个凹函数,三分即可,计算方案的时候dp一下.eps取大了会挂精度,指定循环次数才是正解. #include<bits/stdc++.h> using namespace st ...
- 【转】json格式化、高亮库jsonFormater
http://leo108.com/pid-1996.asp JsonFormater 基于jQuery的json格式化.高亮库 核心代码参考天马行空工作室,本人只做了模块化和一些代码优化. demo ...
- Linux下手动备份还原硬盘主引导记录MBR跟硬盘分区表DPT教程
Linux下手动备份还原硬盘主引导记录MBR跟硬盘分区表DPT教程 二 18 奶牛 Linux, Ubuntu, Windows 1,885 views查看评论 最近奶牛一直在折腾linux下的gru ...
- JAVA实现webSocket网页聊天室
一.什么是webSocket WebSocket 是一种网络通信协议,是持久化协议.RFC6455 定义了它的通信标准. WebSocket 是 HTML5 开始提供的一种在单个 TCP 连接上进行全 ...
- [bzoj]1003: [ZJOI2006]物流运输
Description 物流公司要把一批货物从码头A运到码头B.由于货物量比较大,需要n天才能运完.货物运输过程中一般要转停好几个码头.物流公司通常会设计一条固定的运输路线,以便对整个运输过程实施严格 ...
- Python入门:Python基础笔记
(C语言:)C语言是相对C++.C#.Java等语言更接近底层,并且一些硬件编程都可以使(只能使用)C语言.另外C语言学起来相对困难,因为涉及到指针,指针也是语言接近底层语言的一个特征.目前编写较大的 ...
- destoon添加修改会员信息时,信息丢失
最近做一destoon项目,因注册字段太多,分了几个步骤.分几个页面来修改公司信息.发现有时候修改时以前保存的字段莫名丢失.. 经查是 因为member.class.php add 和 edit时, ...
- Goroutine 中执行匿名函数 坑
//相对应for 循环 goroutine跑到慢 所以这里很大概率只会打印最后一条数据 func goRun() { values := []int{1, 2, 3} for _, v := rang ...