You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The DevWorkspaceOperatorConfig was extended to enable the workspace
backup process. This commits describes the feature and how to configure
it.
Signed-off-by: Ales Raszka <araszka@redhat.com>
- **`retainTime`**: The duration time in seconds since a DevWorkspace was last started before it is considered stale and eligible for cleanup. Default: 2592000 seconds (30 days).
108
108
- **`dryRun`**: Set to `true` to run the cleanup job in dry-run mode. In this mode, the job logs which DevWorkspaces would be removed but does not actually delete them. Set to `false` to perform the actual deletion. Default: `false`.
109
109
110
+
## Configuring Backup CronJob
111
+
112
+
The DevWorkspace backup job allows for periodic backups of DevWorkspace data to a specified backup location.
113
+
Once enabled and configured, the backup job will run at defined intervals to create backups of DevWorkspace data.
114
+
The backup controller depends on OCI compatible registry that is used as an artifact storage for backup archives.
115
+
116
+
The backup makes a snapshoft of Workspace PVCs and stores them as tar.gz archives in the specified OCI registry.
117
+
**Note:** By default, the DevWorkspace backup job is disabled.
118
+
119
+
120
+
Backup CronJob configuration fields:
121
+
122
+
- **`enable`**: Set to `true` to enable the backup job, `false` to disable it. Default: `false`.
123
+
- **`schedule`**: A Cron expression defining how often the backup job runs. Default: `"0 1 * * *"`.
124
+
- **`registry.path`**: A registry location where the backup archives will be pushed. The full path is given by `<registry.path>/<devworkspace-name>:latest`.
125
+
- **`registry.authSecret`**: (Optional) The name of the Kubernetes Secret containing credentials to access the OCI registry. If not provided, it is assumed that the registry is public or uses integrated OpenShift registry.
126
+
- **`oras.extraArgs`**: (Optional) Additional arguments to pass to the `oras` CLI tool during push and pull operations.
127
+
128
+
129
+
There are several configuration options to customize the logic:
130
+
131
+
### Integrated OpenShift container registry
132
+
This option is available only on OpenShift clusters with integrated container registry enabled and requires no additional configuration.
133
+
134
+
To enable the backup use following configuration in the global DWOC:
0 commit comments