How to Find ETCD Leader and Check ETCD Health
Problem
Environment
Procedure
docker cp etcd:/usr/local/bin/etcdctl /opt/pf9/pf9-kube/bin
export PATH=$PATH:/opt/pf9/pf9-kube/bin# /opt/pf9/pf9-kube/bin/etcdctl endpoint status -w=table
+----------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| ENDPOINT | ID | VERSION | DB SIZE | IS LEADER | IS LEARNER | RAFT TERM | RAFT INDEX | RAFT APPLIED INDEX | ERRORS |
+----------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
| 127.0.0.1:2379 | 5ad09a7031a6a983 | 3.4.14 | 13 MB | false | false | 83 | 6676368 | 6676368 | |
+----------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+
{% endtab %}
{% tab language="bash" title="Containerd" %}
# sudo /opt/pf9/pf9-kube/bin/etcdctl --cacert=/etc/pf9/kube.d/certs/etcdctl/etcd/ca.crt --cert=/etc/pf9/kube.d/certs/etcdctl/etcd/request.crt --key=/etc/pf9/kube.d/certs/etcdctl/etcd/request.key endpoint status --cluster -w=tableAdditional Information
PreviousScale Master Nodes in AWS ClustersNextEnable Scheduler Container Logs to Track Pod Placement
Last updated
