apiVersion: batch/v1
kind: Job
metadata:
  name: cuda-vector-add
spec:
  template:
    metadata:
      name: cuda-vector-add
    spec:
      restartPolicy: Never
      containers:
      - name: cuda-vector-add
        image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda11.1-ubuntu18.04
      nodeSelector:
        kubernetes.io/os: linux
        accelerator: nvidia
