trt-client.yaml 593 B

123456789101112131415161718192021222324252627
  1. apiVersion: v1
  2. kind: Pod
  3. metadata:
  4. name: tensorrt-client
  5. spec:
  6. containers:
  7. - image: nvcr.io/nvidia/tensorrtserver:20.01-py3-clientsdk
  8. imagePullPolicy: IfNotPresent
  9. name: tensorrt-client
  10. volumeMounts:
  11. - mountPath: /work
  12. name: work-volume
  13. command: [ "/bin/bash" ]
  14. args: ["-c", "while true; do sleep 120; done;"]
  15. resources:
  16. limits:
  17. nvidia.com/gpu: 1
  18. restartPolicy: Never
  19. imagePullSecrets:
  20. - name: ngc-secret
  21. volumes:
  22. - name: work-volume
  23. hostPath:
  24. # NFS mount on computes
  25. path: /home/root/
  26. type: Directory