25 lines
657 B
YAML
25 lines
657 B
YAML
---
|
|
apiVersion: batch/v1
|
|
kind: Job
|
|
metadata:
|
|
name: "wipe-${rsrc}-${claim}-${ts}"
|
|
namespace: "${namespace}"
|
|
spec:
|
|
ttlSecondsAfterFinished: 3600
|
|
template:
|
|
spec:
|
|
automountServiceAccountToken: false
|
|
restartPolicy: OnFailure
|
|
containers:
|
|
- name: wipe
|
|
image: public.ecr.aws/docker/library/busybox:latest
|
|
command: ["/bin/sh", "-c", "cd /config; find . -delete"]
|
|
volumeMounts:
|
|
- name: config
|
|
mountPath: /config
|
|
securityContext:
|
|
privileged: true
|
|
volumes:
|
|
- name: config
|
|
persistentVolumeClaim:
|
|
claimName: "${claim}"
|