33 lines
767 B
YAML
33 lines
767 B
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: sync-garage-csi
|
|
namespace: garage
|
|
spec:
|
|
ttlSecondsAfterFinished: 100
|
|
template:
|
|
spec:
|
|
containers:
|
|
- name: rclone
|
|
image: rclone/rclone
|
|
args:
|
|
- sync
|
|
- -P
|
|
- --update
|
|
- --no-update-modtime
|
|
- --no-update-dir-modtime
|
|
- --ignore-errors
|
|
- -s3-upload-concurrency 64
|
|
- -v
|
|
- garage:csi
|
|
- hcloud:1661580-csi
|
|
volumeMounts:
|
|
- name: rclone-config
|
|
mountPath: /config/rclone
|
|
restartPolicy: Never
|
|
volumes:
|
|
- name: rclone-config
|
|
secret:
|
|
secretName: rclone-config
|
|
defaultMode: 420
|