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:
Creates a new Backup Compliance Policy.
Updates an existing Backup Compliance Policy.
Important
See the Prohibited Actions and Considerations. A Backup Compliance Policy applies as the minimum backup policy to all clusters in the project. The Backup Compliance Policy protects all existing snapshots. The Backup Compliance Policy prevents any user, regardless of role, from modifying or deleting existing snapshots prior to their expiration. Changes made to this Backup Compliance Policy apply only to future snapshots. If you enable a Backup Compliance Policy, the Backup Compliance Policy limits your ability to reduce backup storage costs. You can't adjust the retention or delete a backup to reduce the backup storage costs.
Example
The following example shows a BackupCompliancePolicy custom
resource. To learn more, see Configure a Backup Compliance Policy.
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
Parameters
AtlasBackupCompliancePolicy
The AtlasBackupCompliancePolicy is a configuration that enforces specific backup and retention requirements
Name | Type | Description | Required |
|---|---|---|---|
| string | atlas.mongodb.com/v1 | true |
| string |
| true |
| object | Refer to the Kubernetes | true |
| object |
| false |
| object |
| false |
AtlasBackupCompliancePolicy.spec
AtlasBackupCompliancePolicySpec is the specification of the desired backup compliance policy configuration.
Name | Type | Description | Required |
|---|---|---|---|
| string | Email address of the user authorized to update Backup Compliance Policy settings. | true |
| string | First name of the user authorized to update the Backup Compliance Policy settings. | true |
| string | Last name of the user authorized to update the Backup Compliance Policy settings. | true |
| boolean | Flag that indicates whether to prevent cluster users from deleting backups copied to other regions, even if those additional snapshot regions are removed. | false |
| boolean | Flag that indicates whether to require Encryption at Rest using Customer Key Management for all clusters with a Backup Compliance Policy. | false |
| object | Specifications for on-demand policy. | false |
| boolean | Flag that indicates whether to overwrite non-complying backup policies with the new data protection settings. | false |
| boolean | Flag that indicates whether the cluster uses Continuous Cloud Backups with a Backup Compliance Policy. | false |
| 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. | false |
| []object | List that contains the specifications for one scheduled policy. | false |
AtlasBackupCompliancePolicy.spec.onDemandPolicy
Specifications for on-demand policy.
Name | Type | Description | Required |
|---|---|---|---|
| enum | 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 | Type | Description | Required |
|---|---|---|---|
| integer | Frequency of the new backup policy item specified by | true |
| enum | 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 |
| enum | 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 | Type | Description | Required |
|---|---|---|---|
| []object | Conditions is the list of statuses showing the current state of the Atlas Custom Resource | true |
| integer |
| false |
AtlasBackupCompliancePolicy.status.conditions
Condition describes the state of an Atlas Custom Resource at a certain point.
Name | Type | Description | Required |
|---|---|---|---|
| string | Status of the condition; one of True, False, Unknown. | true |
| string | Type of Atlas Custom Resource condition. | true |
| string | Last time the condition transitioned from one status to another.
Represented in | false |
| string | A | false |
| string | The | false |