apiVersion: batch/v1 kind: Job metadata: name: gpu-job namespace: ucsb-csc spec: template: spec: restartPolicy: Never containers: - name: fs-container image: fuzzrence/tf-gpu2 command: ["/bin/bash"] args: ["-c", "chmod 777 /fuzvol"] args: ["-c", "echo 'helloworld' > /fuzvol/test4.txt"] args: ["-c", "nvidia-smi >> /fuzvol/test4.txt"] resources: limits: nvidia.com/gpu: 1 volumeMounts: - name: fuzvol mountPath: /fuzvol volumes: - name: fuzvol persistentVolumeClaim: claimName: fuzvol