20 lines
350 B
YAML
20 lines
350 B
YAML
|
apiVersion: v1
|
||
|
kind: Pod
|
||
|
metadata:
|
||
|
name: nvidia-test
|
||
|
namespace: default
|
||
|
spec:
|
||
|
containers:
|
||
|
- image: nvidia/cuda:10.1-runtime-ubuntu16.04
|
||
|
command:
|
||
|
- "bash"
|
||
|
- "-c"
|
||
|
- "sleep 3600"
|
||
|
imagePullPolicy: IfNotPresent
|
||
|
name: nvidia-test
|
||
|
resources:
|
||
|
limits:
|
||
|
nvidia.com/gpu: 1
|
||
|
requests:
|
||
|
memory: 1024Mi
|