ClusterBackupSchedule resource¶
This section describes the ClusterBackupSchedule custom resource (CR) used
in the MOSK management API to configure a schedule for
MOSK or management cluster backups.
The ClusterBackupSchedule CR contains the following fields:
apiVersionAPI version of the object that is
kaas.mirantis.com/v1alpha1.
kindObject type that is
ClusterBackupSchedule.
metadataMetadata of the
ClusterBackupScheduleCR that contains the following fields:nameName of the
ClusterBackupScheduleobject.
namespaceProject name of the cluster that relates to
ClusterBackupSchedule.
After the
ClusterBackupScheduleobject is created, themetadatasection also contains details about the target cluster requesting the backup schedule:ownerReferencesDetails about the target cluster that owns the
ClusterBackupScheduleobject. Contains the following fields:apiVersionAPI version of the target
Clusterobject that owns theClusterBackupScheduleobject.
kindObject type of the target
Clusterobject that owns theClusterBackupScheduleobject.
nameName of the target
Clusterobject that owns theClusterBackupScheduleobject.
uidReference to the
targetClusterfield located in thespecsection of theClusterBackupScheduleobject.
specSpecification of the
ClusterBackupScheduleCR that contains the following fields:parametersParameters of the
ClusterBackupScheduleCR. If empty, MOSK replaces it with thebackupsection values of the targetClusterobjectspec, if any.Contains the following fields:
keyEncryptionKeyName of the Kubernetes secret that contains the encryption key that is used to encrypt the backup data. Requires either
rcloneornfsUploadUrlfield to be set.
nfsUploadUrlNFS URL for the backup data upload. For example,
nfs://1.2.3.4:/path. Mutually exclusive with therclonefield.
rcloneParameters of the rclone configuration. Contains the following fields:
bucketName of the remote rclone bucket containing the folder for the backup.
credentialName of the
RCloneCredentialobject that contains credentials for the remote storage bucket.
scheduleSchedule for the backup in the
“0 * * * *”cron format. For example,0 0 * * *for daily backups at 00:00. The schedule is relative to the time zone of the management cluster.Caution
The minimum supported backup interval is one hour.
targetClusterName of the target cluster for the backup schedule.
statusStatus of the
ClusterBackupScheduleCR. Contains the following fields:attemptsList of backup attempts. Contains the following fields:
inProgressIndicates that a backup attempt is in progress. Contains the following fields:
startedAtTimestamp of the backup start in the RFC 3339 format.
statusStatus of the backup progress.
messageMessage describing the progress of the current backup attempt.
lastLast backup attempt. Contains the following fields:
completedAtTimestamp of the backup completion in the RFC 3339 format. For example,
2026-01-16T16:00:51Z.
startedAtTimestamp of the backup start in the RFC 3339 format.
statusStatus of the backup attempt. Possible values are
CompletedandFailed.
messageMessage describing the progress of the last backup attempt.
lastSuccessfulLast successful backup attempt. Contains the following fields:
completedAtTimestamp of the backup completion in the RFC 3339 format.
startedAtTimestamp of the backup start in the RFC 3339 format.
totalTotal number of backup attempts.
Configuration example of a ClusterBackupSchedule object before creation:
apiVersion: kaas.mirantis.com/v1alpha1
kind: ClusterBackupSchedule
metadata:
name: test-schedule
namespace: default
spec:
parameters:
keyEncryptionKey: swift-s3
rclone:
bucket: test
credential: swift-s3
schedule: “0 * * * *”
targetCluster: kaas-mgmt
status:
attempts:
last:
completedAt: "2026-01-09T12:02:47Z"
startedAt: "2026-01-09T12:02:41Z"
status: Completed
lastSuccessful:
completedAt: "2026-01-09T12:02:47Z"
startedAt: "2026-01-09T12:02:41Z"
total: 1