Jenkins k8s plugin pod反复重启,connect: no route to host
新安装了centos的虚拟机作为K8s 的node,添加完成后使用Jenkins指定该node启动pod,但是会反复重启报错如下:查看log:$ kubectl get pod -n xxx | grep yyy | awk '{print $1}' | xargs -I {} kubectl logs {} -c default-n xxxError from server: Get "xxxx
·
新安装了centos的虚拟机作为K8s 的node,添加完成后使用Jenkins指定该node启动pod,但是会反复重启
报错如下:
查看log:
$ kubectl get pod -n xxx | grep yyy | awk '{print $1}' | xargs -I {} kubectl logs {} -c default -n xxx
Error from server: Get "xxxxxx/default": dial tcp xxx.xxx.xx.xx: connect: no route to host
Error from server: Get "xxxxxx/default": dial tcp xxx.xxx.xx.xx: connect: no route to host
Error from server: Get "xxxxxx/default": dial tcp xxx.xxx.xx.xx: connect: no route to host
Error from server: Get "xxxxxx/default": dial tcp xxx.xxx.xx.xx: connect: no route to host
Error from server: Get "xxxxxx/default": dial tcp xxx.xxx.xx.xx: connect: no route to host
解决办法:
iptables --flush
iptables -tnat --flush
参考:
Unable to access kubernetes services: no route to host · Issue #6139 · rancher/rancher · GitHub
更多推荐
已为社区贡献3条内容
所有评论(0)