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 ...
随机推荐
- Java 继承与重写
1.类的继承 1)继承 父类:所有子类所共有的属性和行为 子类:子类所特有的属性和行为 通过extends关键字来实现类的继承 子类(Sub class)可以继承父类(Super class)的成员变 ...
- jquery的uploadify插件实现的批量上传V3.2.1版
你需要如下配置(包括引入文件)HTML: <html xmlns="http://www.w3.org/1999/xhtml"> <head runat=&quo ...
- 使用控件的Tag属性传递信息
实现效果: 知识运用: Control类的Tag属性 //获取或设置包含 有关控件的数据的对象 public object Tag {get;set;} 实现代码: private void Form ...
- linux必会命令-查询-tail
先说一个tail使用的例子: tail -n 20 filename 说明:显示filename最后20行. Linux下tail命令的使用方法.linux tail命令用途是依照要求将指定的文件的最 ...
- beta版和alpha版
外部测试版的意思. 软件会出现三种版本 1.alpha内部测试版本,极不稳定,一般也不会出现的公众视线,仅供内部测试人员测试用. 2.beta公共测试版,就是对外发布软件的测试版,收集公众的意见和建议 ...
- java基础—object类
一.Object类介绍
- 01_6_SERVLET如何从上一个页面取得参数
01_6_SERVLET如何从上一个页面取得参数 1. sevlet实现 public void doGet(HttpServletRequest request, HttpServletRespon ...
- 【线段树分治 线性基】luoguP3733 [HAOI2017]八纵八横
不知道为什么bzoj没有HAOI2017 题目描述 Anihc国有n个城市,这n个城市从1~n编号,1号城市为首都.城市间初始时有m条高速公路,每条高速公路都有一个非负整数的经济影响因子,每条高速公路 ...
- Mybatis 循环 foreach, 批量操作
mapper.java: int modifySortOfGoods(@Param("idlist") List<String> goodsIds, @Param(&q ...
- 【android】安卓的权限提示及版本相关
Only dangerous permissions require user agreement. The way Android asks the user to grant dangerous ...