Kubernetes/File/Yaml/aliyun-gpu-pod.yaml

20 lines
335 B
YAML
Raw Normal View History

2024-08-07 10:54:39 +00:00
apiVersion: v1
kind: Pod
metadata:
name: gpu-pod
labels:
app: nginx
spec:
containers:
- name: nginx
image: nginx:latest
env:
- name: NVIDIA_VISIBLE_DEVICES
value: "all"
ports:
- containerPort: 80
# resources:
# limits:
# aliyun.com/gpu-count: 1
# aliyun.com/gpu-mem: 512