2024-05-07 11:51:08 +00:00
|
|
|
---
|
|
|
|
apiVersion: batch/v1
|
|
|
|
kind: Job
|
|
|
|
metadata:
|
2024-11-07 21:16:11 +00:00
|
|
|
name: sync-garage-csi
|
2024-05-07 11:51:08 +00:00
|
|
|
namespace: garage
|
|
|
|
spec:
|
|
|
|
ttlSecondsAfterFinished: 100
|
|
|
|
template:
|
|
|
|
spec:
|
|
|
|
containers:
|
2024-10-10 18:45:15 +00:00
|
|
|
- name: rclone
|
|
|
|
image: rclone/rclone
|
|
|
|
args:
|
|
|
|
- sync
|
|
|
|
- -P
|
|
|
|
- --update
|
|
|
|
- --no-update-modtime
|
|
|
|
- --no-update-dir-modtime
|
|
|
|
- --ignore-errors
|
|
|
|
- -s3-upload-concurrency 64
|
|
|
|
- -v
|
2024-11-07 21:16:11 +00:00
|
|
|
- garage:csi
|
|
|
|
- hcloud:1661580-csi
|
2024-10-10 18:45:15 +00:00
|
|
|
volumeMounts:
|
|
|
|
- name: rclone-config
|
|
|
|
mountPath: /config/rclone
|
2024-05-07 11:51:08 +00:00
|
|
|
restartPolicy: Never
|
|
|
|
volumes:
|
|
|
|
- name: rclone-config
|
|
|
|
secret:
|
|
|
|
secretName: rclone-config
|
|
|
|
defaultMode: 420
|