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
Copy file name to clipboardExpand all lines: README.md
+31-5Lines changed: 31 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,13 +1,16 @@
1
1
# VirtualMachine Snapshot Scheduler
2
2
The **VirtualMachine Snapshot Scheduler** is a Kubernetes operator designed to automate the lifecycle of KubeVirt `VirtualMachineSnapshot` resources. It creates snapshots at defined intervals using cron expressions and manages their retention.
3
+
3
4
## Features
4
5
-**Cron-based Scheduling**: Automatically creates `VirtualMachineSnapshot` objects at specified intervals.
5
6
-**Multiple VM Support**: Selects VirtualMachines to snapshot using a `LabelSelector`.
6
7
-**Retention Management**: Automatically deletes old snapshots based on a maximum count or TTL (Time to Live).
7
8
-**Disable Schedule**: Disable snapshot creation by setting `disabled: true` while maintaining existing snapshots.
8
9
-**Leader Election**: Supports high availability with leader election.
10
+
9
11
## Usage
10
12
To enable scheduled snapshots for your VirtualMachines, create a `VirtualMachineSnapshotSchedule` resource.
13
+
11
14
### Single VirtualMachine Snapshot
12
15
```yaml
13
16
apiVersion: snapscheduler.kubevirt.io/v1alpha1
@@ -21,6 +24,7 @@ spec:
21
24
matchLabels:
22
25
vm.kubevirt.io/name: my-vm
23
26
```
27
+
24
28
### Multiple VirtualMachines with Selector
25
29
```yaml
26
30
apiVersion: snapscheduler.kubevirt.io/v1alpha1
@@ -38,20 +42,42 @@ spec:
38
42
labels:
39
43
backup-type: scheduled
40
44
```
45
+
41
46
## Configuration
42
-
The controller can be configured using command-line flags or environment variables:
43
-
| Flag | Environment Variable | Default | Description |
0 commit comments