The following steps demonstrate how to back up and restore an OpenShift virtual machine using OADP and RustFS as an S3-compatible backup target.
The OpenShift API for Data Protection (OADP) Operator provides native backup, restore, and disaster recovery for OpenShift applications and persistent volumes. Built on the open-source Velero project, it automatically deploys Velero alongside custom OpenShift plugins to handle application configurations, secrets, and CSI volume snapshots.
2. Click Install to proceed.
3. Installation takes a few minutes to complete.
You can follow the official guide to install RustFS:
https://github.com/rustfs/rustfs
Create a bucket.
Create an access key.
On the OCP cluster, create an API key as a secret:
$ cat <<EOF > ./credentials-rustfs
[default]
aws_access_key_id=oadp
aws_secret_access_key=<your-secret-key>
EOF
$ oc create secret generic rustfs-backup-credentials \
–namespace openshift-adp \
–from-file cloud=./credentials-rustfs
You can download the YAML file using the link below:
https://github.com/Dineshk1205/ocpvmbkp/blob/c858dcbd0779fc952d9b4c5caa46b1a7d9ed4adc/b.yaml
The testvm virtual machine is running in the vmtest namespace.
You can download the YAML using the following link:
https://github.com/Dineshk1205/ocpvmbkp/blob/c858dcbd0779fc952d9b4c5caa46b1a7d9ed4adc/vmbackup.yaml
Check the backup status — the backup completed successfully.
Let’s delete the VM and restore it from the backup.
You can download the YAML using the following link:
https://github.com/Dineshk1205/ocpvmbkp/blob/c858dcbd0779fc952d9b4c5caa46b1a7d9ed4adc/vmrestore.yaml
Restore completed successfully.
Similarly, you can configure incremental backups.
Shipping a new version of an application is always a small act of faith. Even…
OpenShift Virtualization allows virtual machines (VMs) to run natively on Kubernetes alongside container workloads. Using…
Red Hat OpenStack Services on OpenShift (RHOSO) provides the foundation to build a private or public…
Kubernetes (often shortened to “K8s”) is an open-source system for automating the deployment, scaling, and…
Ceph is an open-source, distributed storage platform that provides object, block, and file storage in…
Prerequisites Red Hat OpenShift cluster deployed and operational You can refer to my earlier post…