How To Identify the Master Node With Latest ETCD Backup
Problem
How to identify which Master node has the latest ETCD backup/snapshot?
Environment
Platform9 Managed Kubernetes - All Versions
ETCD
Procedure
The backup is run on only one of the master nodes part of the cluster. You can identify the master node on which the recent backup was completed successfully. The output will give you the NodeIP/Nodename on which the most recent backups are stored.
# kubectl get pods -n kube-system -o wide | grep -i etcd-backup
NAME READY STATUS RESTARTS AGE IP NODE
etcd-backup-27407100-njkb6 0/2 Completed 0 87m 10.128.147.106 track2
etcd-backup-27407130-4kf9g 0/2 Completed 0 57m 10.128.147.106 track2
etcd-backup-27407160-vj9w9 0/2 Completed 0 27m 10.128.147.106 track2[root@track2 ~]# ls -lrt /etc/pf9/etcd-backup
total 74172
-rw-------. 1 root root 25313312 Feb 9 17:30 etcd-snapshot-2022-02-09_17:30:04_UTC.db
-rw-------. 1 root root 25313312 Feb 9 18:00 etcd-snapshot-2022-02-09_18:00:05_UTC.db
-rw-------. 1 root root 25313312 Feb 9 18:30 etcd-snapshot-2022-02-09_18:30:04_UTC.dbPreviousHow To Disable and Re-enable Dynamic Kubelet Configuration
NextHow To Run Kube-Bench In Platform9 Managed Kubernetes Clusters
Last updated
