flanneld启动报错Failed to create SubnetManager: parse first path segment in URL cannot contain colon

我自己在做flanneld的二进制部署过程当中,遇到了一件比较棘手的事情,就是flanneld启动失败,报错的原因正如标题所示,其实这个问题很好解决,

-etcd-endpoints=https://192.168.50.128:2379,https://192.168.50.129:2379,https://192.168.50.130:2379 

上面的这一行配置是flanneld的配置文件里面的其中一行。我这里使用的etcd版本是3.3.24版本,那么上面的这个是不能加上双引号引起来的。比如:-etcd-endpoint="https://xxx,https://xxx",这样子写是错误的,不能加上引号。
当然,解决起来有可能也需要配合我这个文章,结合着来解决问题:https://www.cnblogs.com/FengGeBlog/p/13546777.html

再总结一个问题
启动flannel报错

couldn't fetch network config: client: response is invalid json the endpoint is probably not valid etcd cluster endpoint

这是因为etcd版本与flanneld不兼容问题,etcd版本不能使用3.4.x的版本,需要回退到3.3.x就可以了。flanneld的版本可以使用0.11或者0.12都可以。

posted @ 2020-08-22 19:14  峰哥ge  阅读(3277)  评论(0编辑  收藏  举报