1.报错本机ip链接本地ip:2379不通
2379为etcd的客户端访问端口,然后测试单纯用docker run 起nginx 也访问不了
原因内核3.10与docker不兼容,升级内核到kernel-lt-5.4.242后,容器恢复正常。升级内核方法:https://www.cnblogs.com/xiaoxiaomuyuyu/p/17884618.html
注意:开始升级的内核版本是kernel5.4.261,升级完成后重启,重启后登录不上22端口关闭。这个版本与9.4 9.5版本的ssh有兼容性问题。
2.rancher安装了一个节点之后,安装其他节点的时候注册不进去,日志报错
Error while getting agent config: invalid response 500: Operation cannot be fulfilled on nodes.management.cattle.io \"m-421aa90e079f\": the object has been modified; please apply your changes to the latest version and try
原因是所有节点的hostname都为localhost同一个名字,所以不给注册进去
3.rancher添加其他节点时,容器日志停在Starting plan monitor, checking every 120 seconds
控制台报错 Failed to validate cluster: Cluster can't have duplicate node: 124.65.206.16
原因是因为公司访问公网的话会分配同一个外部ip,这样之前注册的节点挂载的就是这个外部ip,其他同样外部ip的节点就注册不进来了。