Velero is the backup solution for PVCs and k8s way.
Selfhosted
A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.
Rules:
-
Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.
-
No spam posting.
-
Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.
-
Don't duplicate the full text of your blog or github here. Just post the link for folks to click.
-
Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).
-
No trolling.
Resources:
- selfh.st Newsletter and index of selfhosted software and apps
- awesome-selfhosted software
- awesome-sysadmin resources
- Self-Hosted Podcast from Jupiter Broadcasting
Any issues on the community? Report it using the report flag.
Questions? DM the mods!
Interesting! I'm using in fact the NFS CSI driver, and it seems that Velero can attach to any CSI interface to make backups. I'm definetely taking a look at it.
A lot of commercial kubernetes backup tools incorporate Velero for portions of their protection methods too!
I use Longhorn for generic PVC and static NFS shares for large files. Longhorn creates scheduled backups to a NFS share, which is then backed up to a Backblaze bucket. I have yet to test restore from Backblaze tho :D
Of course this means that I have 3 copies of the same data across multiple Nodes because of how Longhorn works. That's why I usually don't create large volumes, just enough to get the app working
I'm thinking about just doing something outside kubernetes that just copies the data from the directory that NFS provides to another storage.
This is what I'm doing for the most part. A TrueNAS server provides the NFS shares and periodically backs them up with restic.
Some apps don't like NFS very much, especially those that require SQLite. If you're running Jellyfin over NFS you probably know what I mean. For those apps I use Ceph instead, which is highly available and a lot faster but also more complicated. Those PVCs I backup from within kubernetes to S3 storage with velero.