theshire/.taskfiles/volsync/resources/list.tmpl.yaml

21 lines
444 B
YAML
Raw Normal View History

2024-01-11 15:03:54 -06:00
---
apiVersion: batch/v1
kind: Job
metadata:
2024-07-08 10:53:12 -05:00
name: ${job}
namespace: ${ns}
2024-01-11 15:03:54 -06:00
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
automountServiceAccountToken: false
restartPolicy: OnFailure
containers:
2024-07-08 10:53:12 -05:00
- name: main
image: docker.io/restic/restic:latest
2024-01-11 15:03:54 -06:00
args: ["snapshots"]
envFrom:
- secretRef:
name: ${app}-volsync-r2-secret
2024-07-08 10:53:12 -05:00
resources: {}