GKS supports a simple etcd backup and restore feature, which is enabled by default for all clusters. The default backup configuration schedule is created with a performed backup of @every 20m interval and a retention of 20 backups.
However, it’s possible to create additional backup configuration if needed.
Note: Before starting keep in mind that this is only an etcd backup and restore. The only thing that is restored is the etcd state, not PVC volumes with application data or similar.
etcd backups and restores are resources bounded to a project. You can manage them in the Project view.
To create a new backup schedule, you need to click on the
Add Automatic Backup button. You have a choice of preset daily, weekly, or monthly backups, or you can create a backup with a custom interval and keep time:
To see all available backups, click on a backup you are interested in:
You will see the list of the completed backups:
You can also create one-time backup snapshots. They are set up similarly to the automatic ones, with the difference that they do not have a schedule or keep count set.
If you want to restore a backup, you need to click on the restore from backup icon in the UI.
After that the cluster gets paused, etcd gets deleted, and then it is recreated from the backup. When it’s done, the cluster is unpaused again. In the meantime, an EtcdRestore object is created in the project, and you can observe its progress in the EtcdRestore list.
In the cluster view, you may notice that your cluster is in a Restoring state, and you can not interact with it until it is done.
When it’s done, the cluster gets unpaused and unblocked, so you can use it. The Etcd Restore goes into a Completed state.