1. 程式人生 > 其它 >k8s之etcd資料庫健康檢查報錯

k8s之etcd資料庫健康檢查報錯

技術標籤:踩坑日誌運維kubernetes雲端計算經驗分享程式人生

在部署k8s的etcd資料庫是iptables和selinux一定要關閉

119 18:31:16 master01 etcd[56305]: health check for peer 1efac82793d2ec3a could not connect: dial tcp 192.168.158.20:2380: connect: no route to host (prober "ROUND_TRIP
119 18:31:16 master01 etcd[56305]: health check for peer 9603
ef4cdb35a723 could not connect: dial tcp 192.168.158.30:2380: connect: no route to host (prober "ROUND_TRIP 119 18:31:16 master01 etcd[56305]: health check for peer 1efac82793d2ec3a could not connect: dial tcp 192.168.158.20:2380: i/o timeout (prober "ROUND_TRIPPER_SNAPSHOT") 119 18:31:16
master01 etcd[56305]: health check for peer 9603ef4cdb35a723 could not connect: dial tcp 192.168.158.30:2380: i/o timeout (prober "ROUND_TRIPPER_SNAPSHOT")

在這裡插入圖片描述
解決方法:關閉防火牆

systemctl stop firewalld
setenforce 0
iptables -F