OpenShift AI Platform Backup: Delete the Operator, Bring It Back
Chapter 3 of OpenShift AI backup: tutorial and best practices. Lab: rhoai-dr, a hosted cluster (Hosted Control Planes) with Red Hat OpenShift AI 3.5.2 and Trilio for Kubernetes 5.4.1.
Most backup conversations about AI stop at the projects. The notebooks, the models, the vector databases. But all of that sits on a platform: an operator, its configuration, and the custom resources that switch each component on. Lose them and every project goes dark at once. This chapter of my OpenShift AI backup guide tests OpenShift AI platform backup for real. I back up the operator with its configuration, delete the whole platform from a cluster, and restore it. You get the plan, the timings and the screenshots.
What "the platform" is in OpenShift AI
OpenShift AI is installed and run by one operator, rhods-operator, managed by OLM (Operator Lifecycle Manager). OLM is the part of OpenShift that installs operators from a catalog and keeps them updated.
The operator does nothing until two custom resources tell it what to do:
| Object | What it does |
|---|---|
DSCInitialization |
Platform-wide settings: namespaces, monitoring, trusted certificates. |
DataScienceCluster |
Which components run: dashboard, model serving (KServe), workbenches, pipelines, and so on. Each one Managed or Removed. |
HardwareProfile |
The sizes users pick when they start a workbench or serve a model. |
Those objects carry the platform’s decisions. Which components you turned on, how they are configured, what hardware users can request. GitOps can hold them, and you should keep them in Git. But a backup brings them back together with the exact operator version, in the right order, without anyone reconstructing anything.
OpenShift AI platform backup plan: operator plus configuration
Trilio for Kubernetes has an operator-aware backup plan. You point it at the OLM Subscription and list the custom resources that belong to the operator:
apiVersion: triliovault.trilio.io/v1
kind: BackupPlan
metadata: {name: p2-rhoai-operator, namespace: redhat-ods-operator}
spec:
backupConfig:
target: {name: wasabi-rhoai-lab-lock, namespace: trilio-system}
retentionPolicy: {name: rhoai-lab-retain-1, namespace: trilio-system}
schedulePolicy:
fullBackupPolicy: {name: rhoai-lab-weekly, namespace: trilio-system}
backupPlanComponents:
operators:
- operatorId: rhoai
subscription: {name: rhods-operator, namespace: redhat-ods-operator}
customResources:
- groupVersionKind: {group: dscinitialization.opendatahub.io, version: v2, kind: DSCInitialization}
- groupVersionKind: {group: datasciencecluster.opendatahub.io, version: v2, kind: DataScienceCluster}
Write the version the cluster stores. In OpenShift AI 3.5 both kinds are stored as v2. Check yours with oc get crd datascienceclusters.datasciencecluster.opendatahub.io -o jsonpath='{.spec.versions[?(@.storage==true)].name}'.
HardwareProfiles are namespaced, in redhat-ods-applications, so they need a second small plan in that namespace:
backupPlanComponents:
customSelector:
selectResources:
gvkSelector:
- groupVersionKind: {group: infrastructure.opendatahub.io, version: v1, kind: HardwareProfile}
What the backup contains
Before deleting anything, I read what the backup actually holds:
| In the backup | Objects |
|---|---|
| OLM | Subscription rhods-operator, its OperatorGroup and CatalogSource, CSV rhods-operator.3.5.2 |
| CRDs | datascienceclusters, dscinitializations (and hardwareprofiles in the second plan) |
| Custom resources | default-dsci, default-dsc, default-profile |
| Container images | the operator bundle image and two catalog images |
Trilio for Kubernetes backs up container images by default, by design. So the operator bundle and the catalog images went into the locked bucket too: 608 MB in 5m53s. That is why this backup is the larger of the two. The second plan was 6.7 MB.
The disaster: the platform deleted in one second
The test cluster is rhoai-dr, a hosted cluster. It is the DR site in the OpenShift AI disaster recovery chapter. It is also the cluster I delete and restore in the hosted control plane backup chapter.
On rhoai-dr I deleted, in one go:
The
DataScienceCluster, first, while the operator was still there to clean up after it.The
DSCInitialization.The operator itself: its Subscription and its CSV.
The HardwareProfile disappeared on its own with the DSCInitialization. The whole thing took one second.
I left the user projects and the CRDs alone on purpose. Deleting a CRD deletes every object of that kind in every project, which is a full disaster recovery scenario. The OpenShift AI disaster recovery chapter covers that one.
The restore: OLM does the install, Trilio does the order
The restore needs one flag:
apiVersion: triliovault.trilio.io/v1
kind: Restore
metadata: {name: p2-restore-operator, namespace: redhat-ods-operator}
spec:
source:
type: Backup
backup: {name: p2-rhoai-operator-1, namespace: redhat-ods-operator}
restoreFlags: {patchIfAlreadyExists: true}
Here is what happens, in this order:
Trilio recreates the OperatorGroup and the Subscription, with manual approval.
It approves the InstallPlan itself and waits until OLM reports the CSV as Succeeded.
It restores the CRDs, then the DSCInitialization and the DataScienceCluster.
It puts the Subscription back to its original approval mode, Automatic here.
Trilio never applies the CSV directly. OLM installs the operator from the catalog, as it would on day one.
Why patchIfAlreadyExists? A freshly installed OpenShift AI operator can create its own default DSCInitialization at startup. Without a flag, Trilio fails a restore whose objects already exist. With it, the backed-up version overwrites whatever the operator created.
The result: back in eight minutes
| Phase | Time |
|---|---|
| Delete the platform | 1 s |
| Restore the operator, DSCInitialization and DataScienceCluster | 3m40s |
| Restore the HardwareProfile | 4m17s |
| DataScienceCluster Ready, dashboard serving | 8m05s from the first restore |
| Check | Before | After |
|---|---|---|
| Operator | rhods-operator.3.5.2, Succeeded | rhods-operator.3.5.2, Succeeded |
| Subscription approval | Automatic | Automatic |
| DSCInitialization / DataScienceCluster | Ready / Ready | Ready / Ready |
| Components | dashboard, KServe, workbenches Managed; others Removed | identical |
HardwareProfile default-profile |
present | present |
| Projects in the dashboard | 3 | 3 |
| RAG model | Ready, answering | Ready, answering |
One detail for your runbook: users had to log in to the dashboard again after the restore. Their old sessions did not survive the platform being rebuilt.
What this test does not cover
Losing the CRDs. Deleting them takes every notebook, model and pipeline object with them. That is a project restore on top of the platform restore, and the OpenShift AI disaster recovery chapter shows it on another cluster.
Other operators the platform depends on. A full install can need the Red Hat build of Kueue or the NVIDIA GPU operator. It depends on your setup. Each one gets its own operator entry in the plan, with its own custom resources. This cluster ran only what the DataScienceCluster enabled.
A different operator version. The catalog still had 3.5.2. If it has moved on, OLM installs what the channel offers, so test the restore whenever you upgrade.
Conclusion
OpenShift AI is an operator plus a handful of custom resources, and losing them darkens every project at once. Trilio backs up the operator through OLM together with its configuration, and restores both in the right order. On my lab cluster the platform came back in eight minutes, identical, with the model still answering. Back up the platform, not only the projects.
Thank you for reading! I hope it was useful.
Useful Links
OpenShift AI backup: all chapters
Rodolfo Casás
Rodolfo Casás is the Director of Product at Trilio with a special focus on cloud-native computing and virtualization, sovereign clouds, hybrid cloud strategies, telco and data protection.