cuda-pod.yaml 309 B

1234567891011121314
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: gpu
  5. spec:
  6. restartPolicy: Never
  7. containers:
  8. - name: gpu
  9. image: "nvidia/cuda:11.4.1-base-ubuntu20.04"
  10. command: [ "/bin/bash", "-c", "--" ]
  11. args: [ "while true; do sleep 30; done;" ]
  12. resources:
  13. limits:
  14. nvidia.com/gpu: 1