39 lines
926 B
YAML
39 lines
926 B
YAML
|
---
|
||
|
apiVersion: batch/v1
|
||
|
kind: Job
|
||
|
metadata:
|
||
|
name: "unlock-${rsrc}-${ts}"
|
||
|
namespace: "${namespace}"
|
||
|
spec:
|
||
|
ttlSecondsAfterFinished: 3600
|
||
|
template:
|
||
|
spec:
|
||
|
automountServiceAccountToken: false
|
||
|
restartPolicy: OnFailure
|
||
|
containers:
|
||
|
- name: unlock
|
||
|
image: docker.io/restic/restic:0.16.0
|
||
|
args: ["unlock", "--remove-all"]
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: "${rsrc}-volsync-r2-secret"
|
||
|
---
|
||
|
apiVersion: batch/v1
|
||
|
kind: Job
|
||
|
metadata:
|
||
|
name: "unlock-${rsrc}-r2-${ts}"
|
||
|
namespace: "${namespace}"
|
||
|
spec:
|
||
|
ttlSecondsAfterFinished: 3600
|
||
|
template:
|
||
|
spec:
|
||
|
automountServiceAccountToken: false
|
||
|
restartPolicy: OnFailure
|
||
|
containers:
|
||
|
- name: unlock
|
||
|
image: docker.io/restic/restic:0.16.0
|
||
|
args: ["unlock", "--remove-all"]
|
||
|
envFrom:
|
||
|
- secretRef:
|
||
|
name: "${rsrc}-volsync-secret"
|