Bootstrapping etcd: Difference between revisions

From Wizard Rants
Jump to navigation Jump to search
No edit summary
No edit summary
Line 9: Line 9:
sudo ETCDCTL_API=3 etcdctl endpoint status --cluster -w table --cacert=/etc/etcd/ca.pem --cert=/etc/etcd/etcd.pem --key=/etc/etcd/etcd-key.pem
sudo ETCDCTL_API=3 etcdctl endpoint status --cluster -w table --cacert=/etc/etcd/ca.pem --cert=/etc/etcd/etcd.pem --key=/etc/etcd/etcd-key.pem
</syntaxhighlight>
</syntaxhighlight>
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
|        ENDPOINT        |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| https://10.1.20.12:2379 | 29458c1e3b5d42da |  3.4.9 |  5.3 MB |    false |      false |      3152 |      39760 |              39760 |        |
| https://10.1.20.10:2379 | 2b1ec301a82f6187 |  3.4.9 |  5.3 MB |    false |      false |      3152 |      39760 |              39760 |        |
| https://10.1.20.11:2379 | bbd865a60d3517fb |  3.4.9 |  5.3 MB |      true |      false |      3152 |      39760 |              39760 |        |
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+

Revision as of 08:30, 22 May 2020

Download Etcd

wget -q --show-progress --https-only --timestamping \
 "https://github.com/etcd-io/etcd/releases/download/v3.4.9/etcd-v3.4.9-linux-amd64.tar.gz"

Validate Etcd Installation

sudo ETCDCTL_API=3 etcdctl endpoint status --cluster -w table --cacert=/etc/etcd/ca.pem --cert=/etc/etcd/etcd.pem --key=/etc/etcd/etcd-key.pem
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
|        ENDPOINT         |        ID        | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| https://10.1.20.12:2379 | 29458c1e3b5d42da |   3.4.9 |  5.3 MB |     false |      false |      3152 |      39760 |              39760 |        |
| https://10.1.20.10:2379 | 2b1ec301a82f6187 |   3.4.9 |  5.3 MB |     false |      false |      3152 |      39760 |              39760 |        |
| https://10.1.20.11:2379 | bbd865a60d3517fb |   3.4.9 |  5.3 MB |      true |      false |      3152 |      39760 |              39760 |        |
+-------------------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+