<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>RKE1 on Support Tools</title><link>https://support.tools/categories/rke1/</link><description>Recent content in RKE1 on Support Tools</description><generator>Hugo</generator><language>en-US</language><lastBuildDate>Sun, 30 Jun 2024 23:18:00 -0500</lastBuildDate><atom:link href="https://support.tools/categories/rke1/index.xml" rel="self" type="application/rss+xml"/><item><title>Rancher Backups and Disaster Recovery for RKE1</title><link>https://support.tools/post/rancher-backups-and-disaster-recovery/</link><pubDate>Sun, 30 Jun 2024 23:18:00 -0500</pubDate><guid>https://support.tools/post/rancher-backups-and-disaster-recovery/</guid><description>&lt;p&gt;Eventually, something will happen that requires restoring a Kubernetes cluster. That&amp;rsquo;s not a question of if but when.&lt;/p&gt;&#10;&lt;p&gt;In the case of Kubernetes, this means regularly backing up the etcd datastore.&lt;/p&gt;&#10;&lt;p&gt;How regular? The choice is yours. It is up to you how much data you are willing to lose.&lt;/p&gt;&#10;&lt;p&gt;For example, a highly active cluster may take snapshots every fifteen minutes or even every five minutes. In the case of a cluster that does not receive a lot of activity, a snapshot of the cluster might be taken daily.&lt;/p&gt;&#10;&lt;p&gt;You can never be fired for having too many backups.&lt;/p&gt;&#10;&lt;p&gt;As a default, RKE takes a snapshot every six hours and keeps it for one day, but you can change the settings in the &lt;code&gt;cluster.yaml&lt;/code&gt;.&lt;/p&gt;&#10;&lt;p&gt;Any time you wish, you can run a snapshot by executing the command &lt;code&gt;rke etcd snapshot-save&lt;/code&gt; and passing it the name of the backup and the location of &lt;code&gt;cluster.yml&lt;/code&gt;. This command will write a snapshot of all the etcd hosts to &lt;code&gt;/opt/rke/etcd-snapshots&lt;/code&gt;. It is possible to mount an NFS volume there, or you can configure RKE to copy the snapshot to S3 to restore it.&lt;/p&gt;</description></item></channel></rss>