apiVersion: batch/v1
kind: Job
metadata:
  name: delete-file-job
spec:
  template:
    spec:
      securityContext:
        runAsUser: 1000
        runAsGroup: 1234
        fsGroup: 1234
      volumes:
        - name: delete-file-pv-storage
          persistentVolumeClaim:
            claimName: delete-file-pv-claim
      containers:
      - name: delete-file-container
        image: busybox
        command: ["rm"]
        args: ["super/data/dummyfile"]
        volumeMounts:
          - mountPath: "/super/data"
            name: delete-file-pv-storage
      restartPolicy: Never
  backoffLimit: 1
