add jitter between volsync backups

This commit is contained in:
Joseph Hanson 2024-10-22 17:28:27 -05:00
parent c3443e87be
commit 1e512d354c
Signed by: jahanson
SSH key fingerprint: SHA256:vy6dKBECV522aPAwklFM3ReKAVB086rT3oWwiuiFG7o

View file

@ -14,14 +14,11 @@ spec:
rules:
- name: set-volsync-movers-custom-config
match:
all:
- resources:
resources:
kinds: ["batch/v1/Job"]
selector:
matchLabels:
app.kubernetes.io/created-by: volsync
- resources:
kinds: ["batch/v1/Job"]
namespaceSelector:
matchLabels:
volsync.backube/privileged-movers: "true"
@ -38,6 +35,10 @@ spec:
values: [11]
template:
spec:
initContainers:
- name: jitter
image: docker.io/library/busybox:latest
command: ['sh', '-c', 'sleep $(shuf -i 0-60 -n 1)']
containers:
- name: restic
volumeMounts: