Storage: Backups & Restore automation #7

Closed
opened 2023-08-25 18:44:40 +02:00 by aaron · 5 comments
Owner
  • scheduled backups of PVs (possible via Longhorn UI)

  • restore of single PVs (possible via Longhorn UI)

  • full restore

- [x] scheduled backups of PVs (possible via Longhorn UI) - [x] restore of single PVs (possible via Longhorn UI) - [x] full restore
aaron added the
type
enhancement
system
storage
labels 2023-08-25 18:44:40 +02:00
aaron self-assigned this 2023-08-25 18:44:40 +02:00
Author
Owner
- [x] evaluate https://velero.io as a solution
Author
Owner
- [x] enable Longhorn CSI Snapshotter by installing [those](https://github.com/kubernetes-csi/external-snapshotter/tree/release-4.0/client/config/crd) CRDs and the [default VolumeSnapshotClass](https://longhorn.io/docs/1.3.0/snapshots-and-backups/csi-snapshot-support/enable-csi-snapshot-support/#add-a-default-volumesnapshotclass) edit: done with c6ee7d56737ed04d3969608597cff8ef80d6352a
Author
Owner

To automate the restore if the volumes we need to automate the following parts:

  • restore the backup without any PVs or PVCs

  • make sure to not create any PVs or PVCs automaticall (e.g. by Helm or Argo) -> therefore all pods stay in Pending state waiting for their PVCs.

  • Restore Backup in Longhorn klickibunti (NOT Disaster Recovery Volumes, thats for hot standby)

  • Restore the PVCs and PVs from within Longhorn -> Pods start automatically and attach the correct Volumes

To automate the restore if the volumes we need to automate the following parts: - [x] restore the backup without any PVs or PVCs - [x] make sure to not create any PVs or PVCs automaticall (e.g. by Helm or Argo) -> therefore all pods stay in Pending state waiting for their PVCs. - [x] Restore Backup in Longhorn klickibunti (NOT Disaster Recovery Volumes, thats for hot standby) - [x] Restore the PVCs and PVs from within Longhorn -> Pods start automatically and attach the correct Volumes
Author
Owner
  • delete longhorn manager pods automatically

  • maybe automate the restore process via the undocumented longhorn api

- [x] delete longhorn manager pods automatically - [x] maybe automate the restore process via the undocumented longhorn api
Author
Owner

done with e7c2737414

done with e7c27374148a46c2c126eed78879a7d4da852c1f
aaron closed this issue 2023-08-29 17:01:40 +02:00
Sign in to join this conversation.
No description provided.