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.
Retrieval-Augmented Generation (RAG) is a way of getting an LLM to answer questions using your…
Kolla-Ansible is an official OpenStack project and a production-recommended deployment method. Ubuntu 24.04 · 3…
NVIDIA Base Command Manager (BCM) provides cluster management software for streamlining cluster provisioning, workload management,…
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…