You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I have setup my etcd like this.
@pg-etcd:~$ cat /etc/default/etcd
ETCD_LISTEN_PEER_URLS = "http://10.0.10.67:2380"
ETCD_LISTEN_CLIENT_URLS = "http://127.0.0.1:2379, http://10.0.10.67:3379"
ETCD_INITIAL_ADVERTISE_PEER_URLS = "http://10.0.10.67:2380"
ETCD_INITIAL_CLUSTER = "default=http://10.0.10.67:2380"
ETCD_ADVERTISE_CLIENT_URLS = "http://10.0.10.67:2379"
ETCD_INITIAL_CLUSTER_TOKEN = "etcd_cluster"
ETCD_INITIAL_CLUSTER_STATE = "new"
The problem is that when i run this.
@pg-etcd:~$ sudo lsof -i -P -n | grep LISTEN
systemd 1 root 108u IPv6 23017 0t0 TCP *:22 (LISTEN)
systemd-r 648 systemd-resolve 16u IPv4 21033 0t0 TCP 127.0.0.53:53 (LISTEN)
systemd-r 648 systemd-resolve 18u IPv4 21035 0t0 TCP 127.0.0.54:53 (LISTEN)
sshd 2226 root 3u IPv6 23017 0t0 TCP *:22 (LISTEN)
sshd 2273 ksh 7u IPv6 29212 0t0 TCP [::1]:6010 (LISTEN)
sshd 2273 ksh 9u IPv4 29213 0t0 TCP 127.0.0.1:6010 (LISTEN)
etcd 4745 etcd 7u IPv4 68597 0t0 TCP 127.0.0.1:2380 (LISTEN)
etcd 4745 etcd 8u IPv4 68598 0t0 TCP 127.0.0.1:2379 (LISTEN)
When i run this
@pg-etcd:~$ curl http://127.0.0.1:2380/members
[{"id":10276657743932975437,"peerURLs":["http://localhost:2380"],"name":"38e4796b69de4c69a22d103943ef9f9d","clientURLs":["http://localhost:2379"]}]
it works
but if i run this
@pg-etcd:~$ curl http://10.0.10.67:2380/members
curl: (7) Failed to connect to 10.0.10.67 port 2380 after 0 ms: Couldn't connect to server`
this is on ubuntu 23.10. Any idea where I made my mistake?
thanks.
Beta Was this translation helpful? Give feedback.
All reactions