20 lines
444 B
YAML
20 lines
444 B
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: ${job}
|
|
namespace: ${ns}
|
|
spec:
|
|
ttlSecondsAfterFinished: 3600
|
|
template:
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- name: main
|
|
image: docker.io/restic/restic:latest
|
|
args: ["snapshots"]
|
|
envFrom:
|
|
- secretRef:
|
|
name: ${app}-volsync-r2-secret
|
|
resources: {}
|