- Deploy and Configure Ops Manager Resources >
- Configure File System Backup Store with Kubernetes Operator
Configure File System Backup Store with Kubernetes Operator¶
On this page
Kubernetes Operator supports storage of filesystem snapshots.
Prerequisites¶
To configure file system snapshot storage, your Kubernetes Operator
deployment must have a
storage class
configured with the ReadWriteMany
method.
Procedure¶
To configure file system snapshot storage:
Create a PersistentVolumeClaim object.¶
Create a PersistentVolumeClaim
object, and allocate storage as needed. Set
accessModes
to ReadWriteMany
:
Create and apply an Ops Manager Custom Resource Definition specifying your PersistentVolumeClaim.¶
Create an Ops Manager CustomResourceDefinition that specifies your
PersistentVolumeClaim
object and the backup.fileSystemStores
field, which is the name of your file system snapshot store.
The following example creates a CustomResourceDefinition file named
ops-manager-fs.yaml
, for the MongoDB
oplog store with a kube-user
.
Apply changes to your Ops Manager deployment.¶
Invoke the following kubectl
command on the filename of your
Ops Manager resource definition:
Configure your oplog store.¶
Wait for your Ops Manager object to report its state as Running
, then
configure your oplog store as described in the
Configure Backup Settings step of the
Deploy an Ops Manager Resource procedure.
Create a File System Snapshot Store in Ops Manager.¶
Log into your Ops Manager instance and navigate to: Admin arrow right icon Backup arrow right icon Snapshot Store arrow right icon Create New File System Store.
Set the name to the value you set for backup.fileSystemStores
in your CustomResourceDefinition. Set the other values as appropriate, then click
Create.
Your Ops Manager object will report a BACKUP
state of Pending
after you create the new file system store.