AtlasBackupCompliancePolicy 사용자 지정 리소스 는 백업 데이터를 보호하기 위해 사용자 지정 리소스 에 적용되는 백업AtlasProject 컴플라이언스 정책 을 구성합니다. AtlasBackupCompliancePolicy 사용자 지정 리소스 를 생성하면 Atlas Kubernetes Operator 가 백업 컴플라이언스 정책을 생성하거나 업데이트 하려고 시도합니다.
Atlas Kubernetes Operator 는 Atlas Backup 컴플라이언스 정책 API 리소스를 사용하여 다음 작업 중 하나를 수행합니다.
새 백업 컴플라이언스 정책을 생성합니다.
기존 백업 컴플라이언스 정책을 업데이트합니다.
중요
금지된 작업 및 고려 사항 을 참조하세요. 백업 규정 준수 정책은 프로젝트 의 모든 클러스터에 최소 백업 정책으로 적용됩니다. 백업 컴플라이언스 정책은 모든 기존 스냅샷을 보호합니다. 백업 컴플라이언스 정책은 역할 에 관계없이 모든 사용자가 만료되기 전에 기존 스냅샷을 수정하거나 삭제할 수 없도록 합니다. 이 백업 컴플라이언스 정책의 변경 사항은 향후 스냅샷에만 적용 됩니다. 백업 컴플라이언스 정책을 활성화 하면 백업 컴플라이언스 정책으로 인해 백업 저장 비용을 줄일 수 기능 이 제한됩니다. 백업 저장 비용을 줄이기 위해 보존 기간을 조정하거나 백업 을 삭제 수 없습니다.
예시
다음 예시 는 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
매개변수
AtlasBackupCompliancePolicy
The AtlasBackupCompliancePolicy is a configuration that enforces specific backup and retention requirements
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | atlas.mongodb.com/v1 | true |
| 문자열 |
| true |
| 객체 |
| true |
| 객체 |
| 거짓 |
| 객체 |
| 거짓 |
AtlasBackupCompliancePolicy.spec
AtlasBackupCompliancePolicySpec is the specification of the desired backup compliance policy configuration.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | Email address of the user authorized to update Backup Compliance Policy settings. | true |
| 문자열 | First name of the user authorized to update the Backup Compliance Policy settings. | true |
| 문자열 | Last name of the user authorized to update the Backup Compliance Policy settings. | true |
| 부울 | Flag that indicates whether to prevent cluster users from deleting backups copied to other regions, even if those additional snapshot regions are removed. | 거짓 |
| 부울 | Flag that indicates whether to require Encryption at Rest using Customer Key Management for all clusters with a Backup Compliance Policy. | 거짓 |
| 객체 | 온디맨드 정책에 대한 사양. | 거짓 |
| 부울 | Flag that indicates whether to overwrite non-complying backup policies with the new data protection settings. | 거짓 |
| 부울 | Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. | 거짓 |
| integer | Number of previous days from which you can restore with Continuous Cloud Backup with a Backup Compliance Policy. This parameter applies only to Continuous Cloud Backups with a Backup Compliance Policy. | 거짓 |
| [] 객체 | 예약된 하나의 정책에 대한 사양이 포함된 목록. | 거짓 |
AtlasBackupCompliancePolicy.spec.onDemandPolicy
온디맨드 정책에 대한 사양.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 열거형 | Scope of the backup policy item: days, weeks, or months. Enum: days, weeks, months | true |
| integer | Value to associate with | true |
AtlasBackupCompliancePolicy.spec.scheduledPolicyItems
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| integer | Frequency of the new backup policy item specified by | true |
| 열거형 | Frequency associated with the backup policy item. You can specify only one each of hourly or daily backup policy items. Enum: hourly, daily, weekly, monthly, yearly | true |
| 열거형 | Unit of time in which | true |
| integer | Duration in days, weeks, months, or years that | true |
AtlasBackupCompliancePolicy.status
BackupCompliancePolicyStatus defines the observed state of AtlasBackupCompliancePolicy.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| [] 객체 | 조건은 Atlas Custom Resource(사용자 지정 리소스)의 현재 상태 보여주는 상태 목록입니다. | true |
| integer |
| 거짓 |
AtlasBackupCompliancePolicy.status.conditions
조건은 특정 점 의 Atlas Custom Resource(사용자 지정 리소스) 상태 를 설명합니다.
Name | 유형 | 설명 | 필수 사항 |
|---|---|---|---|
| 문자열 | 조건의 상태입니다. 참, 거짓, 알 수 없음 중 하나입니다. | true |
| 문자열 | Atlas Custom Resource(사용자 지정 리소스) 조건 유형입니다. | true |
| 문자열 | 마지막으로 조건이 한 상태에서 다른 상태로 전환된 시간입니다. 형식으로 | 거짓 |
| 문자열 | 전환에 대한 세부 정보를 제공하는 | 거짓 |
| 문자열 | 조건의 마지막 전환에 대한 | 거짓 |