Files
pi-ux-ce 6aae17706b
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 19s
update openmediavault with new structure
2024-11-25 22:58:10 +00:00

39 lines
886 B
YAML

apiVersion: batch/v1
kind: Job
metadata:
name: rsync-glacier-job
namespace: backup
spec:
backoffLimit: 6
template:
spec:
containers:
- command:
- /bin/sh
- /config/rsync.sh
image: alpine
imagePullPolicy: Always
name: rsync-glacier
volumeMounts:
- name: glacier-backup
mountPath: /destination
- name: ssd
mountPath: /source
- mountPath: /config
name: scripts
restartPolicy: Never
terminationGracePeriodSeconds: 30
volumes:
- name: ssd
hostPath:
path: /ssd/
type: Directory
- name: glacier-backup
persistentVolumeClaim:
claimName: openmediavault-backup
- configMap:
defaultMode: 365
name: rsync-scripts
name: scripts
ttlSecondsAfterFinished: 100