Managed Kubernetes
Latest
Frequently Asked Questions
Solutions
How Tos
Internal Only
Templates
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
How to Find ETCD Leader and Check ETCD Health
Copy Markdown
Open in ChatGPT
Open in Claude
Problem
How to find ETCD Leader and check ETCD Health in a Platform9 Managed Kubernetes Cluster?
Environment
- Platform9 Managed Kubernetes - All Versions
- ETCD
- Docker and Containerd
Procedure
- SSH into any one of the Master nodes and become a root user.
- For docker based container runtime: Run the following command to copy the etcdctl binary from the etcd container running on the node and update the PATH variable.
Docker
xxxxxxxxxxdocker cp etcd:/usr/local/bin/etcdctl /opt/pf9/pf9-kube/bin export PATH=$PATH:/opt/pf9/pf9-kube/bin- Run the etcdctl command to find out the ETCD Leader and look for IS LEADER column
Docker
Containerd
# /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 | |+----------------+------------------+---------+---------+-----------+------------+-----------+------------+--------------------+--------+- Run the etcdctl command to check ETCD Health of Member/Endpoints.
Docker
Containerd
# /opt/pf9/pf9-kube/bin/etcdctl endpoint health --cluster -w=table --endpoints=http://127.0.0.1:2379 --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 | HEALTH | TOOK | ERROR |+-----------------------------+--------+-------------+-------+| https://10.128.146.244:4001 | true | 18.427771ms | || https://10.128.147.235:4001 | true | 18.958459ms | || https://10.128.146.71:4001 | true | 20.086052ms | |+-----------------------------+--------+-------------+-------+Additional Information
VariableType to search · ESC to discard
GlossaryType to search · ESC to discard
InsertType to search · ESC to discard
No matches
Last updated on
Was this page helpful?
Next to read:
Enable Scheduler Container Logs to Track Pod PlacementDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message