New Master with new etcd volumes do not join in the cluster
**1. What kops version are you running?
1.10.0
**2. What Kubernetes version are you running?
v1.10.3
3. What cloud provider are you using?
AWS
4. What commands did you run? What is the simplest way to reproduce this issue?
Delete a ETCD Disk (main and events) and recreate the master.
5. What happened after the commands executed?
The new master with new etcd disk do not join in the cluster .
6. What did you expect to happen?
New node master join in the cluster.
7. Please provide your cluster manifest. Execute
kops get --name my.example.com -o yaml to display your cluster manifest.
You may want to remove your cluster name and other sensitive information.
8. Please run the commands with most verbose logging by adding the -v 10 flag.
Paste the logs into this report, or in a gist and provide the gist link here.
9. Anything else do we need to know?
The error message on kube-apiserver is controller.go:135] Unable to perform initial IP allocation check: unable to refresh the service IP block: client: etcd cluster is unavailable or misconfigured; error #0: dial tcp 127.0.0.1:4001: getsockopt: connection refused
Issue Solved.
1 - I removed the old master from de etcd cluster using etcdctl. You will need to connect on the etcd-server container to do this.
2 - On the new master node I stopped kubelet and protokube services.
3 - Empty Etcd data dir. (data and data-events)
4 - Edit /etc/kubernetes/manifests/etcd.manifests and etcd-events.manifest changing ETCD_INITIAL_CLUSTER_STATE from new to existing.
5 - Get the name and PeerURLS from new master and use etcdctl to add the new master on the cluster. (etcdctl member add "name" "PeerULR")You will need to connect on the etcd-server container to do this.
6 - Start kubelet and protokube services on the new master.
Please, see my blog post:
https://blog.danilorocha.com.br/2018/10/09/how-to-recover-an-etcd-member-on-kubernetes-cluster-como-recuperar-um-no-etcd-no-seu-cluster-kubernetes/
On Fri, Dec 14, 2018 at 7:14 PM Martin Cox [email protected] wrote:
Hi @danilorsilva https://github.com/danilorsilva I'm experiencing the same issue and thanks to your background I believe I did the same thing. I was trying to go up to kubernetes 1.12.3 and on master-a it tried to upgrade to etcd 3.x.x. Right now I'm just trying to get master-a to work again on 1.11 with etcd 2.x, but master-a is just boned.
Would you mind going into a bit more detail on your fix? Master-a isn't even running etcd-server, and I can't figure out how to exec into the etcd-server on master-c.
Thanks!
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/kubernetes/kops/issues/5864#issuecomment-447481239, or mute the thread https://github.com/notifications/unsubscribe-auth/ATvv5ctQeef9rbCFVe15vhfa9vU1y_JBks5u5BS_gaJpZM4XFEbz .
-- Att.
Danilo Rocha