This folder contains information and tools for debugging the distributed key-value store (etcd).
-
Check Etcd Logs:
- Use
kubectl logs -n kube-system <etcd-pod-name>to view logs. - Look for errors related to data storage or cluster communication.
- Use
-
Verify Etcd Health:
- Use
etcdctlto check the health of the etcd cluster. - Example:
etcdctl --endpoints=<etcd-endpoints> endpoint health.
- Use
-
Inspect Data:
- Use
etcdctlto inspect keys and values stored in etcd. - Example:
etcdctl --endpoints=<etcd-endpoints> get / --prefix.
- Use
-
Check Disk Usage:
- Ensure that the disk hosting etcd data has sufficient free space.
-
Inspect Configuration:
- Review the etcd configuration file (e.g.,
/etc/kubernetes/manifests/etcd.yaml).
- Review the etcd configuration file (e.g.,
kubectletcdctl- Disk monitoring tools like
dfordu.
Problem: Etcd cluster is unhealthy.
Solution:
- Check etcd logs:
kubectl logs -n kube-system <etcd-pod-name>. - Verify etcd health:
etcdctl --endpoints=<etcd-endpoints> endpoint health. - Inspect disk usage:
df -hordu -sh /var/lib/etcd.