1. 程式人生 > >k8s, etcd集群搭建報報錯:request cluster ID mismatch (got

k8s, etcd集群搭建報報錯:request cluster ID mismatch (got

參考 mat art wan 通過 https rev boot conf

目前在學習K8S, etcd 集群搭建,啟動時候報錯:

master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)

master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: request cluster ID mismatch (got bdd7c7c32bde1208 want 698851d67fea3c17)
master-16 etcd[25461]: 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

k8s, etcd集群搭建報報錯:request cluster ID mismatch (got