The AtlasBackupCompliancePolicy custom resource configures a Backup Compliance Policy that applies to the AtlasProject Custom Resource to protect your backup data. When you create the AtlasBackupCompliancePolicy custom resource, Atlas Kubernetes Operator tries to create or update a Backup Compliance Policy.
Atlas Kubernetes Operator does one of the following actions using the Atlas Backup Compliance Policy API Resource:
새 백업 컴플라이언스 정책을 생성합니다.
기존 백업 컴플라이언스 정책을 업데이트합니다.
중요
금지된 작업 및 고려 사항 을 참조하세요. 백업 규정 준수 정책은 프로젝트 의 모든 클러스터에 최소 백업 정책으로 적용됩니다. 백업 컴플라이언스 정책은 모든 기존 스냅샷을 보호합니다. 백업 컴플라이언스 정책은 역할 에 관계없이 모든 사용자가 만료되기 전에 기존 스냅샷을 수정하거나 삭제할 수 없도록 합니다. 이 백업 컴플라이언스 정책의 변경 사항은 향후 스냅샷에만 적용 됩니다. 백업 컴플라이언스 정책을 활성화 하면 백업 컴플라이언스 정책으로 인해 백업 저장 비용을 줄일 수 기능 이 제한됩니다. 백업 저장 비용을 줄이기 위해 보존 기간을 조정하거나 백업 을 삭제 수 없습니다.
예시
다음 예시 는 BackupCompliancePolicy 사용자 지정 리소스 를 보여줍니다. 학습 내용 은 백업 컴플라이언스 정책 구성을 참조하세요.
apiVersion: atlas.mongodb.com/v1 kind: AtlasBackupCompliancePolicy metadata: name: my-backup-compliance-policy namespace: mongodb-atlas-system spec: authorizedEmail: john.doe@example.com authorizedUserFirstName: John authorizedUserLastName: Doe copyProtectionEnabled: false encryptionAtRestEnabled: false onDemandPolicy: retentionUnit: weeks retentionValue: 3 overwriteBackupPolicies: false pointInTimeEnabled: true restoreWindowDays: 42 scheduledPolicyItems: - frequencyInterval: 2 frequencyType: daily retentionUnit: days retentionValue: 7
매개변수
이 섹션에서는 사용 가능한 주요 BackupCompliancePolicy 사용자 지정 리소스 매개변수 몇 가지에 대해 설명합니다. For a full list of parameters available, see the Atlas Update or Enable the Backup Compliance Policy settings API. 사양을 사용자 지정하려면 이러한 설명, 사용 가능한 예제, API 설명서를 참조하세요.
spec.authorizedEmail유형: 문자열
필수 사항
권한이 부여된 보안 담당자 또는 법적 대리인의 이메일 주소 입니다.
중요
이메일 주소가 유효하지 않거나 올바르지 않으면 MongoDB 지원팀의 도움을 받아 수정할 때까지 이 백업 컴플라이언스 정책을 수정하거나 활성화할 수 없습니다.
spec.copyProtectionEnabled유형: 부울
옵션
Flag that indicates whether to keep all snapshots when removing additional snapshot regions. This parameter defaults to
false.참고
You can prevent cluster users from deleting backups copied to other regions even if you change this parameter to
false. To learn more, see Copy Snapshots to Additional Regions.
spec.encryptionAtRestEnabled유형: 부울
옵션
모든 클러스터에 대해 고객 키 관리를 사용한 미사용 데이터 암호화를 요구 할지 여부를 나타내는 플래그입니다. 이 매개변수의 기본값은
false입니다.참고
To enable this option, you must Enable Encryption at Rest for all current clusters. You can't enable this option on paused clusters that don't have Encryption at Rest enabled.
spec.onDemandPolicy.frequencyInterval유형: 숫자
필수 사항
Number that indicates the desired frequency of the policy item specified by
spec.onDemandPolicy.frequencyType. A value of1specifies the first instance of the correspondingspec.onDemandPolicy.frequencyType.예시
월별 백업 컴플라이언스 정책에서
1는 월별 스냅샷 이 매월 1일에 생성됨을 나타냅니다.주간 백업 컴플라이언스 정책에서
1는 주간 스냅샷 이 월요일에 발생함을 나타냅니다.
이 설정에서는 다음과 같은 빈도 값을 사용할 수 있습니다.
시간별:
1,2,4,6,8및12.매일:
1.주간:
1~7에서1는 월요일이고7은 일요일입니다.월별:
1~28및40로, 여기서1은 해당 월의 첫 번째 날이고40는 월의 마지막 날입니다.
spec.onDemandPolicy.frequencyType유형: 문자열
필수 사항
정책 항목과 연결된 빈도를 나타내는 string 입니다. 허용되는 값은
hourly,daily,weekly또는monthly입니다.참고
onDemandPolicy에서
hourly및daily백업 정책을 여러 개 지정할 수 없습니다.
spec.onDemandPolicy.retentionUnit유형: 문자열
필수 사항
String that indicates the scope of the policy item. Together with
spec.onDemandPolicy.retentionValue, these settings define the length of time to retain snapshots. Accepted values are:days,weeks, ormonths.
spec.onDemandPolicy.retentionValue유형: 문자열
필수 사항
String that indicates the value to associate with
spec.onDemandPolicy.retentionUnit. Together withspec.onDemandPolicy.retentionUnit, these settings define the length of time to retain snapshots.
spec.overwriteBackupPolicies유형: 부울
필수 사항
AtlasBackupPolicyCustom Resource(사용자 지정 리소스 )에 지정된 항목에 관계없이 프로젝트 의 모든 백업 정책을 업그레이드 할지 여부를 나타내는 플래그입니다.중요
이 매개 변수를
true로 설정하다 하면 Atlas 는AtlasBackupPolicyCustom Resource(사용자 지정 리소스)에 지정된 항목에 관계없이 프로젝트 의 모든 백업 정책을 업그레이드합니다. Atlas 는AtlasBackupPolicyCustom Resource (사용자 지정 리소스)를 재정의하고 해당 사용자 지정 리소스 의 상태를Ready: False로 업데이트합니다. 백업 컴플라이언스 정책에 맞게AtlasBackupPolicyCustom Resource(사용자 지정 리소스) 를 수동으로 업데이트 해야 합니다.이 매개 변수를
false로 설정하다 하면 기존 백업 정책이 백업 컴플라이언스 정책을 충족하지 못하면 백업 컴플라이언스 정책 만들기가 실패합니다.
spec.restoreWindowDays유형: 숫자
조건부
Number of days in the restore window for point in time restore. If you set
spec.pitEnabledtotrue, you must specify this parameter.중요
You can't configure a restore window that is longer than the Hourly Snapshot Retention Time. After you save this Backup Compliance Policy, you can't change this setting without MongoDB support. To change this setting, the security or legal representative specified for the Backup Compliance Policy must request support and complete an extensive verification process.
spec.scheduledPolicyItems.frequencyInterval유형: 숫자
필수 사항
Number that indicates the desired frequency of the policy item specified by
spec.scheduledPolicyItems.frequencyType. A value of1specifies the first instance of the correspondingspec.scheduledPolicyItems.frequencyType.예시
월별 백업 컴플라이언스 정책에서
1는 월별 스냅샷 이 매월 1일에 생성됨을 나타냅니다.주간 백업 컴플라이언스 정책에서
1는 주간 스냅샷 이 월요일에 발생함을 나타냅니다.
이 설정에서는 다음과 같은 빈도 값을 사용할 수 있습니다.
시간별:
1,2,4,6,8및12.매일:
1.주간:
1~7에서1는 월요일이고7은 일요일입니다.월별:
1~28및40로, 여기서1은 해당 월의 첫 번째 날이고40는 월의 마지막 날입니다.
spec.scheduledPolicyItems.frequencyType유형: 문자열
필수 사항
정책 항목과 연결된 빈도를 나타내는 string 입니다. 허용되는 값은
hourly,daily,weekly또는monthly입니다.참고
여러
hourly및daily백업 정책 ScheduledPolicyItems를 지정할 수 없습니다.
spec.scheduledPolicyItems.retentionUnit유형: 문자열
필수 사항
String that indicates the scope of the policy item. Together with
spec.scheduledPolicyItems.retentionValue, these settings define the length of time to retain snapshots. Accepted values are:days,weeks, ormonths.
spec.scheduledPolicyItems.retentionValue유형: 문자열
필수 사항
String that indicates the value to associate with
spec.scheduledPolicyItems.retentionUnit. Together withspec.scheduledPolicyItems.retentionUnit, these settings define the length of time to retain snapshots.