ETCD啟動(dòng)失敗-connect: no route to host

搭建K8S集群遇到ETCD的報(bào)錯(cuò),報(bào)錯(cuò)信息如下,

一定要關(guān)閉防火墻、iptables和SELINUX,三個(gè)都要關(guān)閉!!

Mar 26 20:39:24 k8s-m1 etcd[6437]: health check for peer 3de62d4888b330ab could not connect: dial tcp 192.168.26.137:2380: connect: no route to host (prober "ROUND_TRIPPER_SNAPSHOT")
Mar 26 20:39:24 k8s-m1 etcd[6437]: health check for peer 3de62d4888b330ab could not connect: dial tcp 192.168.26.137:2380: connect: no route to host (prober "ROUND_TRIPPER_RAFT_MESSAGE")
Mar 26 20:39:24 k8s-m1 etcd[6437]: health check for peer c6f4c021208d2dfe could not connect: dial tcp 192.168.26.136:2380: i/o timeout (prober "ROUND_TRIPPER_SNAPSHOT")
Mar 26 20:39:24 k8s-m1 etcd[6437]: health check for peer c6f4c021208d2dfe could not connect: dial tcp 192.168.26.136:2380: i/o timeout (prober "ROUND_TRIPPER_RAFT_MESSAGE")
Mar 26 20:39:24 k8s-m1 etcd[6437]: publish error: etcdserver: request timed out

關(guān)閉CentOS7防火墻

查看防火墻狀態(tài)

firewall-cmd --state

停止firewall

systemctl stop firewalld.service

禁止firewall開(kāi)機(jī)啟動(dòng)

systemctl disable firewalld.service</pre>

關(guān)閉SELINUX

編輯SELINUX文件

vim /etc/selinux/config

將SELINUX=enforcing改為SELINUX=disabled

清除和關(guān)閉iptables

清空iptables規(guī)則

iptables -F

保存

iptables-save

?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請(qǐng)聯(lián)系作者
【社區(qū)內(nèi)容提示】社區(qū)部分內(nèi)容疑似由AI輔助生成,瀏覽時(shí)請(qǐng)結(jié)合常識(shí)與多方信息審慎甄別。
平臺(tái)聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點(diǎn),簡(jiǎn)書(shū)系信息發(fā)布平臺(tái),僅提供信息存儲(chǔ)服務(wù)。

友情鏈接更多精彩內(nèi)容