MongoDB.local SF, Jan 15: See the speaker lineup & ship your AI vision faster. Use WEB50 to save 50%
Find out more >
Docs Menu
Docs Home
/ /
/ / /

AtlasBackupSchedule 사용자 지정 리소스

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를 백업하려면 다음을 모두 수행해야 합니다.

  1. 백업 정책만들기

  2. Create a backup schedule and set the spec.policy.name field to the name of the configured backup policy.

  3. Set the spec.backupRef.name field in the AtlasDeployment Custom 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 is the Schema for the atlasbackupschedules API.

Name
유형
설명
필수 사항

apiVersion

문자열

atlas.mongodb.com/v1

true

kind

문자열

AtlasBackupSchedule

true

metadata

객체

Refer to the Kubernetes API documentation for the fields of the metadata field.

true

spec

객체

AtlasBackupScheduleSpec defines the target state of AtlasBackupSchedule.

거짓

status

객체

BackupScheduleStatus defines the observed state of AtlasBackupSchedule.

거짓

AtlasBackupScheduleSpec defines the target state of AtlasBackupSchedule.

Name
유형
설명
필수 사항

policy

객체

A reference (name & namespace) for backup policy in the desired updated backup policy.

true

autoExportEnabled

부울

Specify true to enable automatic export of cloud backup snapshots to the AWS bucket. You must also define the export policy using export. If omitted, defaults to false. Default: false

거짓

copySettings

[]object

Copy backups to other regions for increased resiliency and faster restores.

거짓

export

객체

Export policy for automatically exporting cloud backup snapshots to AWS bucket.

거짓

referenceHourOfDay

integer

UTC Hour of day between 0 and 23, inclusive, representing which hour of the day that Atlas takes snapshots for backup policy items Format: int64 Minimum: 0 Maximum: 23

거짓

referenceMinuteOfHour

integer

UTC Minutes after ReferenceHourOfDay that Atlas takes snapshots for backup policy items. Must be between 0 and 59, inclusive. Format: int64 Minimum: 0 Maximum: 59

거짓

restoreWindowDays

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

거짓

updateSnapshots

부울

Specify true to apply the retention changes in the updated backup policy to snapshots that Atlas took previously.

거짓

useOrgAndGroupNamesInExportPrefix

부울

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 S3 bucket after it finishes exporting the snapshots

거짓

A reference (name & namespace) for backup policy in the desired updated backup policy.

Name
유형
설명
필수 사항

name

문자열

Name of the Kubernetes Resource

true

namespace

문자열

Namespace of the Kubernetes Resource

거짓

Name
유형
설명
필수 사항

cloudProvider

열거형

Identifies the cloud provider that stores the snapshot copy. Enum: AWS, GCP, AZURE Default: AWS

거짓

frequencies

[]string

복사할 스냅샷 유형을 설명하는 목록입니다.

거짓

regionName

문자열

Target region to copy snapshots belonging to replicationSpecId to.

거짓

shouldCopyOplogs

부울

Flag that indicates whether to copy the oplogs to the target region.

거짓

Export policy for automatically exporting cloud backup snapshots to AWS bucket.

Name
유형
설명
필수 사항

exportBucketId

문자열

Unique Atlas identifier of the AWS bucket which was granted access to export backup snapshot.

true

frequencyType

열거형

Human-readable label that indicates the rate at which the export policy item occurs. Enum: monthly Default: monthly

true

BackupScheduleStatus defines the observed state of AtlasBackupSchedule.

Name
유형
설명
필수 사항

conditions

[]object

Conditions is the list of statuses showing the current state of the Atlas Custom Resource

true

deploymentID

[]string

List of the human-readable names of all deployments utilizing this backup schedule.

거짓

observedGeneration

integer

ObservedGeneration indicates the generation of the resource specification of which the Atlas Operator is aware. The Atlas Operator updates this field to the value of 'metadata.generation' as soon as it starts reconciliation of the resource. Format: int64

거짓

Condition describes the state of an Atlas Custom Resource at a certain point.

Name
유형
설명
필수 사항

status

문자열

Status of the condition; one of True, False, Unknown.

true

type

문자열

Type of Atlas Custom Resource condition.

true

lastTransitionTime

문자열

Last time the condition transitioned from one status to another. Represented in ISO 8601 format. Format: date-time

거짓

message

문자열

A message providing details about the transition.

거짓

reason

문자열

The reason for the condition's last transition.

거짓

돌아가기

AtlasBackupPolicy

이 페이지의 내용