K8S學習筆記之ETCD啟動失敗注意事項


 

最近搭建K8S集群遇到ETCD的報錯,報錯信息如下,一定要關閉防火牆、iptables和SELINUX,三個都要關閉!!

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

 

關閉CentOS7防火牆

# 查看防火牆狀態
firewall-cmd --state

# 停止firewall
systemctl stop firewalld.service

# 禁止firewall開機啟動
systemctl disable firewalld.service

 

關閉SELINUX

# 編輯SELINUX文件
vim /etc/selinux/config

# 將SELINUX=enforcing改為SELINUX=disabled

 

清除和關閉iptables

# 清空iptables規則
iptables -F

# 保存
iptables-save

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM