<p>It was a stupidity of me for not paying attention to etcdctl version. In my case, I had to use <br><code>ETCDCTL_API=3 etcdctl member list</code>
<br>
And do not forget to export the env. </p>

CC BY-SA 4.0
2019-05-06T12:01:06.853Z
2019-05-06T12:01:06.853Z
Mariem
<p>I am new to kubernetes and I am working on creating multi-master-kubernetes with 2 masters nodes.
<br> Could anyone explain why when I execute the command<br>
<br><code>ETCDCTL_API=2 etcdctl member list</code>, I get:</p>

<blockquote>
  <p>etcd cluster is unavailable or misconfigured;</p>
</blockquote>

<p>And when I execute <code>ETCDCTL_API=2 etcdctl --ca-file=/etc/etcd/ca.pem --cert-file=/etc/etcd/kubernetes.pem --key-file=/etc/etcd/kubernetes-key.pem member list</code>, I get this result:
<br></p>

<blockquote>
  <p>cc59f69db7afb8fc: name=x peerURLs=<a href="https://x.x.x.x:2380" rel="nofollow noreferrer">https://x.x.x.x:2380</a>
  clientURLs=<a href="https://x.x.x.x:2379" rel="nofollow noreferrer">https://x.x.x.x:2379</a> isLeader=false
  <br>e91f43559989b2a6: name=y peerURLs=<a href="https://x.x.x.x:2380" rel="nofollow noreferrer">https://x.x.x.x:2380</a>
  clientURLs=<a href="https://x.x.x.x:2379" rel="nofollow noreferrer">https://x.x.x.x:2379</a> isLeader=true</p>
</blockquote>

<p><br>Am I missing something? </p>

<kubernetes>
etcd cluster is unavailable or misconfigured (kubernetes multi-master)
Mariem
# etcd cluster is unavailable or misconfigured (kubernetes multi-master)

(Asked by: username_0 on 2019-02-02)

I am new to kubernetes and I am working on creating multi-master-kubernetes with 2 masters nodes.
  
 Could anyone explain why when I execute the command  
  
`ETCDCTL_API=2 etcdctl member list`, I get:

> etcd cluster is unavailable or misconfigured;

And when I execute `ETCDCTL_API=2 etcdctl --ca-file=/etc/etcd/ca.pem --cert-file=/etc/etcd/kubernetes.pem --key-file=/etc/etcd/kubernetes-key.pem member list`, I get this result:

> cc59f69db7afb8fc: name=x peerURLs=<https://x.x.x.x:2380>
> clientURLs=<https://x.x.x.x:2379> isLeader=false
>   
> e91f43559989b2a6: name=y peerURLs=<https://x.x.x.x:2380>
> clientURLs=<https://x.x.x.x:2379> isLeader=true

Am I missing something?

**Tags:** kubernetes


---

## 1 answers

### Answer by username_0 on 2019-05-06. Score: 0 | Accepted answer

It was a stupidity of me for not paying attention to etcdctl version. In my case, I had to use   
`ETCDCTL_API=3 etcdctl member list`
  
And do not forget to export the env.


---

