--- 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}"