mirror of
https://github.com/rubenhensen/k8scd.git
synced 2026-11-15 14:29:09 +01:00
velero: skip emptyDir volumes in scheduled backups
The nightly backup of 2026-10-23 ended PartiallyFailed because a repository maintenance job pod finished while Velero was reading its emptyDir volumes. emptyDir holds nothing worth restoring, so a volume policy now skips it for both schedules.
This commit is contained in:
1 parent
336c37ca50
commit
2c4164ad22
3 files changed
+24
-2
No files matched your search
@@ -10,4 +10,7 @@ spec:
|
||||
ttl: 720h # 30 days ONLY h, d/w for day and week do not work!
|
||||
defaultVolumesToFsBackup: true
|
||||
snapshotVolumes: true
|
||||
snapshotMoveData: true
|
||||
snapshotMoveData: true
|
||||
resourcePolicy:
|
||||
kind: configmap
|
||||
name: skip-emptydir-policy
|
||||
@@ -0,0 +1,16 @@
|
||||
# Volume policy for the backup schedules. emptyDir volumes hold nothing
|
||||
# worth keeping, and backing them up fails when the pod is gone before its
|
||||
# volume is read, as happens with Velero's own repository maintenance jobs.
|
||||
apiVersion: v1
|
||||
kind: ConfigMap
|
||||
metadata:
|
||||
name: skip-emptydir-policy
|
||||
data:
|
||||
policy.yaml: |
|
||||
version: v1
|
||||
volumePolicies:
|
||||
- conditions:
|
||||
volumeTypes:
|
||||
- emptyDir
|
||||
action:
|
||||
type: skip
|
||||
@@ -10,4 +10,7 @@ spec:
|
||||
ttl: 2160h # 90 days
|
||||
defaultVolumesToFsBackup: true
|
||||
snapshotVolumes: true
|
||||
snapshotMoveData: true
|
||||
snapshotMoveData: true
|
||||
resourcePolicy:
|
||||
kind: configmap
|
||||
name: skip-emptydir-policy
|
||||
Reference in new issue
Block a user