-
Notifications
You must be signed in to change notification settings - Fork 9.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
etcd-member 3 node cluster setup #8434
Comments
Try |
exec /usr/bin/rkt run --uuid-file-save=/var/lib/coreos/etcd-member-wrapper.uuid --trust-keys-from-https --mount volume=coreos-systemd-dir,targ Am i doing wrong configuration ? |
ETCDCTL_API=3 etcdctl cluster-health |
@darktall Above log just shows a single node cluster, so everything is expected.
Or
|
Systemctl enable etcd-member.service Systemctl start etcd-member.service Is how I did Thank you. |
When you run So try |
ETCDCTL_API=3 etcdctl cluster-health I got above out put. |
Again, try |
my cat 20-cl-etcd-member.conf look like below with out --auto-compaction-retention flag also its not working for me |
@darktall Sorry, After you copy your
|
Also try |
I just dropped you mail ( [email protected] ). please check once. |
ENDPOINTS=10.98.8.205:2379,10.98.8.206:2379,10.98.8.207:2379 |
Thank you very much gyuho etcdctl --endpoints=$ENDPOINTS member list Its working now. |
Thank you for your support. |
I am trying to configure etcd 3 node cluster in coreos . Below is my configuration file
/usr/lib/systemd/system/etcd-member.service
[Unit]
Description=etcd (System Application Container)
Documentation=https://github.com/coreos/etcd
Wants=network.target
Conflicts=etcd.service
Conflicts=etcd2.service
[Service]
Type=notify
Restart=on-failure
RestartSec=10s
TimeoutStartSec=0
LimitNOFILE=40000
Environment="ETCD_IMAGE_TAG=v3.1.8"
Environment="ETCD_NAME=%m"
Environment="ETCD_USER=etcd"
Environment="ETCD_DATA_DIR=/var/lib/etcd"
Environment="RKT_RUN_ARGS=--uuid-file-save=/var/lib/coreos/etcd-member-wrapper.uuid"
ExecStartPre=/usr/bin/mkdir --parents /var/lib/coreos
ExecStartPre=-/usr/bin/rkt rm --uuid-file=/var/lib/coreos/etcd-member-wrapper.uuid
ExecStart=/usr/lib/coreos/etcd-wrapper $ETCD_OPTS
ExecStop=-/usr/bin/rkt stop --uuid-file=/var/lib/coreos/etcd-member-wrapper.uuid
[Install]
WantedBy=multi-user.target
/etc/systemd/system/etcd-member.service.d/20-cl-etcd-member.conf
[Service]
[Service]
Environment="ETCD_IMAGE_TAG=v3.1.8"
Environment="ETCD_DATA_DIR=/var/lib/etcd"
Environment="ETCD_OPTS=--name s1 --listen-client-urls http://10.98.8.205:2379 --advertise-client-urls http://10.98.8.205:2379 --listen-peer-urls http://10.98.8.205:2380 --initial-advertise-peer-urls http://10.98.8.205:2380 --initial-cluster s1=http://10.98.8.205:2380,s2=http://10.98.8.206:2380,s3=http://10.98.8.207:2380 --initial-cluster-token mytoken --initial-cluster-state new
output when i run etcdctl cluster-health
member 8e9e05c52164694d is healthy: got healthy result from http://localhost:2379
cluster is healthy
coreos version 1465.6.0
How to configure 3 node cluster properly.
The text was updated successfully, but these errors were encountered: