How to Find ETCD Leader and Check ETCD Health

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

  1. SSH into any one of the Master nodes and become a root user.
  2. 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
Copy
  1. Run the etcdctl command to find out the ETCD Leader and look for IS LEADER column
Docker
Containerd
Copy
  1. Run the etcdctl command to check ETCD Health of Member/Endpoints.
Docker
Containerd
Copy

Additional Information

Kubernetes Docs - Configure/Upgrade ETCD

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard