Original link: https://nyan.im/p/velero-restic-zh
English version: Backup and Restore Kubernetes Volumes with Velero Restic Integration – Frank’s Weblog I built a Kubernetes cluster using OpenEBS as the storage backend. I chose Jiva as the storage engine, Jiva is a highly available storage controller and data is replicated to all nodes. To keep my data safe, I use Velero and its Restic integration to back up the volume to AWS S3. Installation First you need to install the Velero CLI on your local computer to control the Velero controller on the Kubernetes cluster, see Velero Docs – Basic Install for installation instructions. Prepare the Kubernetes configuration file, which should be located in .kube/config and make sure kubectl get pod returns the correct result. Create an AWS key file with the following format, which should have access to the S3 bucket provided in the next step, note the path to the file. Installing Velero to a Kubernetes Cluster Backup and Restore Running a Single Backup Creating a Scheduled Backup Plan For more backup options, see Velero Docs – Restic Integration Restoring from a Backup Exporting a Backup Sometimes restoring directly to a Kubernetes cluster does not meet our needs. In this case, we can export the files directly from the backup repo located in S3. Since Velero doesn’t provide this functionality in its CLI, we need to use the Restic CLI. Install Restic CLI Installation — restic 0.14.0 documentation Get Snapshot ID […]
This article is reprinted from: https://nyan.im/p/velero-restic-zh
This site is for inclusion only, and the copyright belongs to the original author.