Files
auricom-home-cluster/.taskfiles/volsync/templates/wipe.tmpl.yaml
2025-01-12 02:00:10 +01:00

26 lines
628 B
YAML

---
apiVersion: batch/v1
kind: Job
metadata:
name: "wipe-${app}-${ts}"
namespace: "${ns}"
spec:
ttlSecondsAfterFinished: 3600
template:
spec:
automountServiceAccountToken: false
restartPolicy: OnFailure
containers:
- name: wipe
image: docker.io/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}"