- 简单跑任务
1 | gcloud run deploy my-nginx-service \ |
跑任务到 GPU 上
1
2
3
4
5
6
7
8
9
10
11
12
13
14gcloud alpha run deploy comfyui \
--image us-east1-docker.pkg.dev/eng-spot-466907-i6/mytest-public/comfyui:v1 \
--concurrency 4 \
--cpu 20 \
--set-env-vars OLLAMA_NUM_PARALLEL=4 \
--gpu 1 \
--gpu-type nvidia-h100-80gb \
--max-instances 1 \
--memory 80Gi \
--no-allow-unauthenticated \
--no-cpu-throttling \
--no-gpu-zonal-redundancy \
--timeout=600 \
--startup-probe tcpSocket.port=8080,initialDelaySeconds=0,failureThreshold=10,timeoutSeconds=30,periodSeconds=60挂载目录
1 | apiVersion: serving.knative.dev/v1 |