etcdctl
The command-line client for etcd, used to read keys, check member health and save or check snapshots.
In more detail
It needs the etcd certificate authority file, a client certificate and a key, which kubeadm keeps under /etc/kubernetes/pki/etcd. Reading keys directly is for learning and recovery, not for changing objects.
Examples
etcdctl snapshot save /secure/etcd/snapshot.dbetcdctl snapshot status /secure/etcd/snapshot.dbRelated terms
- etcd — The distributed key-value store where Kubernetes keeps all cluster data, including every Secret.
- etcd snapshot — A point-in-time copy of the whole etcd database, which is the backup of a Kubernetes cluster's state.
Taught in
- Securing the Kubernetes Control Plane & Node Components — Cloud Security & DevSecOps Engineering
- Control Plane: etcd, API Server, Scheduler, Controllers — Kubernetes: Production-Grade Container Orchestration
- etcd Snapshots And A Tested Restore — Kubernetes: Production-Grade Container Orchestration