mirror of
https://github.com/openshift/openshift-docs.git
synced 2026-02-05 12:46:18 +01:00
66 lines
2.1 KiB
Plaintext
66 lines
2.1 KiB
Plaintext
// Module included in the following assemblies:
|
|
//
|
|
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
|
|
|
|
:_mod-docs-content-type: PROCEDURE
|
|
[id="oadp-ceph-preparing-crs-additional_{context}"]
|
|
= Defining additional custom resources for use with OADP 1.2 Data Mover
|
|
|
|
After you redefine the default `StorageClass` and CephRBD `VolumeSnapshotClass` custom resources (CRs), you must create the following CRs:
|
|
|
|
* A CephFS `StorageClass` CR defined to use the shallow copy feature
|
|
* A Rustic `Secret` CR
|
|
|
|
.Procedure
|
|
|
|
. Create a CephFS `StorageClass` CR and set the `backingSnapshot` parameter set to `true` as in the following example:
|
|
+
|
|
.Example CephFS `StorageClass` CR with `backingSnapshot` set to `true`
|
|
+
|
|
[source, yaml]
|
|
----
|
|
kind: StorageClass
|
|
apiVersion: storage.k8s.io/v1
|
|
metadata:
|
|
name: ocs-storagecluster-cephfs-shallow
|
|
annotations:
|
|
description: Provides RWO and RWX Filesystem volumes
|
|
storageclass.kubernetes.io/is-default-class: false
|
|
provisioner: openshift-storage.cephfs.csi.ceph.com
|
|
parameters:
|
|
csi.storage.k8s.io/provisioner-secret-namespace: openshift-storage
|
|
csi.storage.k8s.io/provisioner-secret-name: rook-csi-cephfs-provisioner
|
|
csi.storage.k8s.io/node-stage-secret-name: rook-csi-cephfs-node
|
|
csi.storage.k8s.io/controller-expand-secret-name: rook-csi-cephfs-provisioner
|
|
clusterID: openshift-storage
|
|
fsName: ocs-storagecluster-cephfilesystem
|
|
csi.storage.k8s.io/controller-expand-secret-namespace: openshift-storage
|
|
backingSnapshot: true <1>
|
|
csi.storage.k8s.io/node-stage-secret-namespace: openshift-storage
|
|
reclaimPolicy: Delete
|
|
allowVolumeExpansion: true
|
|
volumeBindingMode: Immediate
|
|
----
|
|
<1> Must be set to `true`.
|
|
+
|
|
[IMPORTANT]
|
|
====
|
|
Ensure that the CephFS `VolumeSnapshotClass` and `StorageClass` CRs have the same value for `provisioner`.
|
|
====
|
|
|
|
. Configure a Restic `Secret` CR as in the following example:
|
|
+
|
|
.Example Restic `Secret` CR
|
|
+
|
|
[source,yaml]
|
|
----
|
|
apiVersion: v1
|
|
kind: Secret
|
|
metadata:
|
|
name: <secret_name>
|
|
namespace: <namespace>
|
|
type: Opaque
|
|
stringData:
|
|
RESTIC_PASSWORD: <restic_password>
|
|
----
|