apiVersion: batch/v1
kind: Job
metadata:
  name: inspect-volume
  namespace: medtune
spec:
  template:
    spec:
      containers:
      - name: ls-laxd
        image: alpine
        command: [ "ls", "-la",
          "/",
          "/nfs" ]
        volumeMounts:
          - mountPath: /nfs
            name: nfs-volume

      restartPolicy: Never
      volumes:
        - name: nfs-volume
          persistentVolumeClaim:
            claimName: train-pvc
  backoffLimit: 1 # Number of retries