AI 에이전트의 경우: 문서 인덱스는 https://www.mongodb.com/ko-kr/docs/llms.txt에서 사용할 수 있으며, 모든 페이지의 마크다운 버전은 어떤 URL 경로에 .md를 추가하여 사용할 수 있습니다.
Docs Menu

Kubernetes 연산자로 파일 시스템 백업 저장소 구성

Kubernetes 연산자는 파일 시스템 스냅샷 저장을 지원합니다.

To configure file system snapshot storage, your Kubernetes Operator deployment must have a storage class configured with the ReadWriteMany method.

파일 시스템 스냅샷 스토리지를 구성하려면 다음을 수행합니다.

1

Create a PersistentVolumeClaim object, and allocate storage as needed. Set accessModes to ReadWriteMany:

apiVersion: v1
kind: PersistentVolumeClaim
metadata:
name: snapshot-store-ops-manager
spec:
storageClassName: managed-nfs-storage #SC that supports(RWX)
accessModes:
- ReadWriteMany
resources:
requests:
storage: 10G
...
2

Create an Ops Manager CustomResourceDefinition that specifies your PersistentVolumeClaim object and the spec.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.

apiVersion: mongodb.com/v1
kind: MongoDBOpsManager
metadata:
name: ops-manager
spec:
replicas: 1
version: 8.0.0
adminCredentials: ops-manager-admin-secret
statefulSet:
spec:
template:
spec:
volumes:
- name: snapshot-store
persistentVolumeClaim:
claimName: snapshot-store-ops-manager
containers:
- name: mongodb-ops-manager
volumeMounts:
- name: snapshot-store
mountPath: /snapshot_store
backup:
enabled: true
fileSystemStores:
- name: filesystem1
assignmentLabels: ["test1", "test2"]
opLogStores:
assignmentLabels: ["test1", "test2"]
- name: oplog1
mongodbResourceRef:
name: oplog-db
# mongodbUserRef:
# name: kube-user
statefulSet:
spec:
template:
spec:
volumes:
- name: snapshot-store
persistentVolumeClaim:
claimName: snapshot-store-ops-manager
containers:
- name: mongodb-backup-daemon
volumeMounts:
- name: snapshot-store
mountPath: /snapshot_store
applicationDatabase:
members: 3
version: 8.0.0
3

Ops Manager 리소스 정의의 파일 이름에 대해 다음 kubectl 명령을 호출합니다.

kubectl apply -f <opsmgr-resource>.yaml
4

Ops Manager 객체가 (으)로 상태를 보고할 Running 때까지 기다린 다음 , Ops Manager 리소스 배포 절차의 백업 설정 구성 단계에 설명된 대로 oplog 스토어를 구성합니다.

5

Ops Manager 인스턴스에 로그인하고 Admin 로 이동합니다. Backup Snapshot Store 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.

새 파일 시스템 저장소를 만든 후 Ops Manager 객체는 PendingBACKUP 상태를 보고합니다.

이 페이지 평가하기

이 페이지의 내용