hujh20 发表于 2019-1-31 12:09:21

k8s, etcd集群搭建报报错:request cluster ID mismatch (got

  目前在学习K8S, etcd 集群搭建,启动时候报错:
  master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)      
master-16 etcd: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
  检查启动service 和配置etcd.conf ,问题应该没有出在配置上。
  解决办法:删除了etcd集群所有节点中的--data_dir的内容
分析: 因为集群搭建过程,单独启动过单一etcd,做为测试验证,集群内第一次启动其他etcd服务时候,是通过发现服务引导的,所以需要删除旧的成员信息
参考:One of the member was bootstrapped via discovery service. You must remove the previous data-dir to clean up the member information. Or the member will ignore the new configuration and start with the old configuration. That is why you see the mismatch.
  k8s 推荐学习博客:https://jimmysong.io/kubernetes-handbook



页: [1]
查看完整版本: k8s, etcd集群搭建报报错:request cluster ID mismatch (got