2022-10-27 12:27:42 +00:00
|
|
|
apiVersion: v1
|
|
|
|
kind: Pod
|
|
|
|
metadata:
|
|
|
|
name: nvidia-test
|
|
|
|
namespace: default
|
|
|
|
spec:
|
2024-11-08 19:36:53 +00:00
|
|
|
runtimeClassName: nvidia
|
2022-10-27 12:27:42 +00:00
|
|
|
containers:
|
2024-11-13 14:35:50 +00:00
|
|
|
#- image: nvcr.io/nvidia/k8s/cuda-sample:vectoradd-cuda12.5.0
|
2024-11-08 19:36:53 +00:00
|
|
|
- image: nvidia/cuda:12.5.1-base-ubuntu22.04
|
2022-10-27 12:27:42 +00:00
|
|
|
command:
|
|
|
|
- "bash"
|
|
|
|
- "-c"
|
2024-11-13 14:35:50 +00:00
|
|
|
- "nvidia-smi; sleep 3600"
|
2022-10-27 12:27:42 +00:00
|
|
|
imagePullPolicy: IfNotPresent
|
|
|
|
name: nvidia-test
|
|
|
|
resources:
|
|
|
|
limits:
|
|
|
|
nvidia.com/gpu: 1
|
|
|
|
requests:
|
|
|
|
memory: 1024Mi
|
2024-11-13 14:35:50 +00:00
|
|
|
tolerations:
|
|
|
|
- effect: NoSchedule
|
|
|
|
key: kubezero-workergroup
|
|
|
|
operator: Exists
|