今天上k8s调试微服务,发现抛出一下错误:

FATA[0000] Cluster must have at least one etcd plane host: failed to connect to the following etcd host(s) []

问题原因:etcd节点挂了,因为一个私钥来连接到服务器(应该配置公钥),它正在尝试从/root/读取它。ssh/idu rsa,但它不存在/可读。

解决办法:从rancher的中复制etcd的配置信息,在节点裸机上执行即可。