AtlasBackupSchedule 사용자 지정 리소스 는 AtlasDeployment 사용자 지정 리소스 에 적용 할 수 있는 백업 예정 을 구성합니다. AtlasBackupSchedule 사용자 지정 리소스 를 만들면 Atlas Kubernetes Operator 가 백업 예정 을 만들거나 업데이트 하려고 시도합니다.
중요
Custom Resource(사용자 정의 리소스)는 더 이상 기본적으로 객체를 삭제하지 않음
Atlas Kubernetes Operator 사용자 지정 리소스 구성 파일을 사용하여 Atlas 구성을 관리 하지만, Atlas Kubernetes Operator 부터는 Kubernetes 에서 삭제 사용자 지정 2.0 리소스가 더 이상 ( 기본값) Atlas 에서 삭제되지 않습니다. 대신 Atlas Kubernetes Operator Atlas 에서 해당 리소스 관리를 중지할 뿐입니다. 예시 들어, Kubernetes 에서 Custom Resource(사용자
AtlasProject지정 리소스)를 삭제 하면 기본값 으로 Atlas Kubernetes Operator 더 이상 Atlas 에서 해당 프로젝트 자동으로 삭제하지 않습니다. 이러한 동작 변경은 우발적이거나 예기치 않은 삭제를 방지하기 위한 것입니다. 이 동작을 Atlas Kubernetes Operator 이전에 사용된 기본값 으로 되돌리는 2 방법0 등 자세한 학습 새 기본값: Atlas Kubernetes Operator 2 의 삭제0 보호 기능을 참조하세요.마찬가지로, Atlas Kubernetes Operator 를 사용하여 Kubernetes 의 Atlas 프로젝트 에서 팀을 제거 하는 경우 Atlas Kubernetes Atlas Kubernetes Operator 는 Atlas 에서 팀을 삭제 하지 않습니다.
기본값 Atlas 구성 값을 암시적으로 사용하지 않으려면 원하는 구성 세부 정보를 명시적으로 정의하세요. 경우에 따라 Atlas 기본값을 상속하면 조정 루프가 발생하여 사용자 지정 리소스
READY상태 달성하지 못할 수 있습니다. 예시 들어AtlasDeployment사용자 지정 리소스 에 원하는 자동 확장 동작을 명시적으로 정의하면 포함된 예시 와 같이 사용자 지정 리소스 의 정적 인스턴스 크기가 자동 확장이 활성화된 Atlas 배포서버 에 반복적으로 적용되지 않도록 할 수 있습니다.autoScaling: diskGB: enabled: true compute: enabled: true scaleDownEnabled: true minInstanceSize: M30 maxInstanceSize: M40
Atlas Kubernetes Operator는 Atlas 클라우드 백업 일정 API 리소스를 사용하여 다음 작업 중 하나를 수행합니다.
새 백업 일정을 생성합니다.
기존 백업 일정을 업데이트합니다.
Kubernetes cluster에서 AtlasBackupSchedule 리소스를 제거하면 Atlas는 cluster에 대한 백업 생성을 중지합니다.
참고
cluster를 백업하려면 다음을 모두 수행해야 합니다.
백업 정책만들기
Create a backup schedule and set the spec.policy.name field to the name of the configured backup policy.
Set the spec.backupRef.name field in the
AtlasDeploymentCustom Resource to the name of the configured backup schedule.
자세한 내용은 Atlas cluster 백업을 참조하세요.
백업 일정은 cluster당 하나씩 지정할 수 있지만 여러 cluster에 동일한 백업 일정을 사용할 수 있습니다.
예시
다음 예제는 10:10 UTC에 스냅샷을 생성하고 최대 2일을 복원하도록 구성된 AtlasBackupSchedule 사용자 지정 리소스를 보여줍니다.
apiVersion: atlas.mongodb.com/v1 kind: AtlasBackupSchedule metadata: name: atlas-default-backupschedule spec: autoExportEnabled: true copySettings: - cloudProvider: AWS frequencies: - HOURLY regionName: US_EAST_1 shouldCopyOplogs: true referenceHourOfDay: 10 referenceMinuteOfHour: 10 restoreWindowDays: 2 policy: name: atlas-default-backuppolicy namespace: mongodb-atlas-system
매개변수
AtlasBackupSchedule
AtlasBackupSchedule is the Schema for the atlasbackupschedules API.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | atlas.mongodb.com/v1 | true |
| 문자열 |
| true |
| 객체 | Refer to the Kubernetes | true |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
AtlasBackupSchedule.spec
AtlasBackupScheduleSpec defines the target state of AtlasBackupSchedule.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 객체 | A reference (name & namespace) for backup | true |
| 부울 | Specify true to enable automatic export of cloud backup snapshots to the | 거짓 |
| []object | Copy backups to other regions for increased resiliency and faster restores. | 거짓 |
| 객체 | Export policy for automatically exporting cloud backup snapshots to | 거짓 |
| integer |
| 거짓 |
| integer |
| 거짓 |
| integer | Number of days back in time you can restore to with Continuous Cloud Backup accuracy. Must be a positive, non-zero integer. Applies to continuous cloud backups only. Format: int64 Default: 1 | 거짓 |
| 부울 | Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously. | 거짓 |
| 부울 | Specify true to use organization and project names instead of organization and project UUIDs in the path for the metadata files that Atlas uploads to your | 거짓 |
AtlasBackupSchedule.spec.policy
A reference (name & namespace) for backup policy in the desired updated backup policy.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Name of the Kubernetes Resource | true |
| 문자열 | Namespace of the Kubernetes Resource | 거짓 |
AtlasBackupSchedule.spec.copySettings
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 열거형 | Identifies the cloud provider that stores the snapshot copy. Enum: | 거짓 |
| []string | 복사할 스냅샷 유형을 설명하는 목록입니다. | 거짓 |
| 문자열 | Target region to copy snapshots belonging to | 거짓 |
| 부울 | Flag that indicates whether to copy the oplogs to the target region. | 거짓 |
AtlasBackupSchedule.spec.export
Export policy for automatically exporting cloud backup snapshots to AWS bucket.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Unique Atlas identifier of the | true |
| 열거형 | Human-readable label that indicates the rate at which the export policy item occurs. Enum: monthly Default: monthly | true |
AtlasBackupSchedule.status
BackupScheduleStatus defines the observed state of AtlasBackupSchedule.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| []object | Conditions is the list of statuses showing the current state of the Atlas Custom Resource | true |
| []string | List of the human-readable names of all deployments utilizing this backup schedule. | 거짓 |
| integer |
| 거짓 |
AtlasBackupSchedule.status.conditions
Condition describes the state of an Atlas Custom Resource at a certain point.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Status of the condition; one of True, False, Unknown. | true |
| 문자열 | Type of Atlas Custom Resource condition. | true |
| 문자열 | Last time the condition transitioned from one status to another. Represented in | 거짓 |
| 문자열 | A | 거짓 |
| 문자열 | The | 거짓 |