apiVersion: v1
kind: Pod
metadata:
  name: nbody-pod
spec:
  restartPolicy: OnFailure
  containers:
    - name: nbody
      image: "nvidia/samples:cuda10.2-ubuntu16.04-nbody"
      command: ["/usr/local/cuda/samples/5_Simulations/nbody/nbody"]
      args: ["-benchmark", "-i=10000000"]
      resources:
        limits:
          nvidia.com/gpu: 1
