Files
k8scd/velero/skip-emptydir-policy.yaml
T
Ruben Hensen 2c4164ad22 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.
2026-10-23 17:12:12 +02:00

17 lines
443 B
YAML

# 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