<p>I have a Stacked master K8s cluster (<code>etcd</code> is also local/internal) with three master and 9 worker nodes.
And my cluster version is currently <code>1.12.3</code>, while going through <code>etcd</code> commands, i tried listing the <code>etcd</code> member, executing </p>

<pre class="lang-sh prettyprint-override"><code>ETCDCTL_API=3 etcdctl member list
</code></pre>

<p>, and found that the client Url's of master2 and master3 is wrong. </p>

<p>Below is the image,
<img src="https://i.stack.imgur.com/9C5Kx.png" alt=""></p>

<p>As per my understanding ip for peers and client should be same, but as I can  see IP is <code>127.0.0.1</code> in case of <code>master2</code> and <code>master3</code>.</p>

<p>When I check the endpoint status I get below error as,</p>

<blockquote>
  <p><strong>Failed to get the status of endpoint :2379 (context deadline exceeded)</strong></p>
</blockquote>

<p>while I am successfully getting the status for <code>master1</code>,</p>

<p><img src="https://i.stack.imgur.com/0ou8a.png" alt=""></p>

<p>Could anyone please help me out in solving this. </p>

<p>Things I tried:</p>

<p>1) Edited the manifest file, etcd pods got restarted, but still nothing changed when I listed the member.</p>

<p>2) I have also successfully removed and added master3 in the etcd cluster, and this worked (IP's got corrected and getting the status of master3), but when I did the same for master2 getting error as </p>

<blockquote>
  <p><strong>"error validating peerURLs {{ID: xyz, PeerUrls:xyz, clienturl:xyz},{&amp;ID:xyz......}}: member count is unequal"</strong></p>
</blockquote>

Utkarsh Singh
<p>Editing etcd manifest file and correcting the IP worked for me.
Previously it wasn't working because there was one etcd.yml.bkp file present in the manifest folder (probably i took the backup of etcd manifest there it self before upgrading) and found that etcd pods referring to that yml file, removing that yml file from manifest folder resolved the issue.</p>
<p>Also found IP mentioned in the kube-apiserver.yml files was incorrect, for correcting it tried below two methods both worked:</p>
<ul>
<li>Manually edited the file and corrected the IP</li>
<li>Or, We can generate a new manifest file for kube-api server executing kubeadm init
phase control-plane apiserver --kubernetes-version 1.14.5</li>
</ul>
