<p>I am using KOPS and I have a cluster with 3 masters. I deleted one master and the disks (root disk and etcd disks(main and events)). </p>

<p>Now kops recreated this master and the disks, but this new master node cannot join in the cluster. The error message on kube-apiserver is </p>

<pre><code>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
</code></pre>

<p>Any idea?</p>

Danilo
<p>Issue Solved.</p>

<p>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.</p>

<p>2 - On the new master node I stopped kubelet and protokube services.</p>

<p>3 - Empty Etcd data dir. (data and data-events)</p>

<p>4 - Edit /etc/kubernetes/manifests/etcd.manifests and etcd-events.manifest changing ETCD_INITIAL_CLUSTER_STATE from new to existing.</p>

<p>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.</p>

<p>6 - Start kubelet and protokube services on the new master.</p>
