k8s之etcd資料庫健康檢查報錯
阿新 • • 發佈:2021-01-20
技術標籤:踩坑日誌運維kubernetes雲端計算經驗分享程式人生
在部署k8s的etcd資料庫是iptables和selinux一定要關閉
1月 19 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
1月 19 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
1月 19 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")
1月 19 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