20 lines
335 B
YAML
20 lines
335 B
YAML
|
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
|