Hi all
What are the best practice to back up the etcd cluster of a kubernetes cluster built with rancher RKE?
Does Rancker backup the etcd Cluster automaticly?
In /var/lib/etcd/member, there is a directory “snap” this some file which look like snapshots:
# ls -ahl /var/lib/etcd/member/snap/
[...]
-rw-r--r--. 1 root root 7.1K May 25 04:09 0000000000000002-000000000005f39a.snap
-rw-r--r--. 1 root root 7.1K May 25 05:16 0000000000000002-0000000000061aab.snap
-rw-r--r--. 1 root root 7.1K May 25 06:23 0000000000000002-00000000000641bc.snap
-rw-r--r--. 1 root root 7.1K May 25 07:30 0000000000000002-00000000000668cd.snap
-rw-r--r--. 1 root root 7.1K May 25 08:37 0000000000000002-0000000000068fde.snap
-rw-------. 1 root root 17M May 25 09:04 db
Are these files ectc backups and if yes, how can I configure the backup time and retention?
With Rancher 1.6 you can configure the etcd backups and these backups are stored under /var/etcd/backups.
# ls -ahl /var/etcd/backups/
[...]
drwx------. 3 root root 19 May 17 18:28 2018-05-17T16:28:46Z_etcd_2
drwx------. 3 root root 19 May 17 18:43 2018-05-17T16:43:46Z_etcd_2
drwx------. 3 root root 19 May 17 18:58 2018-05-17T16:58:46Z_etcd_2
How is that solved with Rancher 2.0?