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