开发者社区 > 云原生 > 容器服务 > 正文

Serverless 容器显卡只能单卡分配吗?

Serverless 容器显卡只能单卡分配吗?阿里云的aliyun.com/gpu-mem这种目前是还不支持?905447ceb56ef9fbf1ac9eead97d83ef.png

展开
收起
三分钟热度的鱼 2024-05-16 08:54:23 36 0
1 条回答
写回答
取消 提交回答
  • 控制台还没透出。当前可以通过yaml配置,参考:apiVersion: serving.knative.dev/v1
    kind: Service
    metadata:
    name: helloworld-go
    namespace: default
    spec:
    template:
    metadata:
    annotations:
    autoscaling.knative.dev/maxScale: "100"
    autoscaling.knative.dev/minScale: "0"
    spec:
    containerConcurrency: 1
    containers:

      - image: registry-vpc.cn-hangzhou.aliyuncs.com/hz-suoxing-test/test:helloworld-go
        name: user-container
        ports:
        - containerPort: 6666
          name: http1
          protocol: TCP
        resources:
          limits:
            aliyun.com/gpu-mem: "3"   
    

    此回答整理自钉群“Serverless 容器体验交流群”

    2024-05-16 11:15:03
    赞同 4 展开评论 打赏

国内唯一 Forrester 公共云容器平台领导者象限。

相关电子书

更多
All in Serverless 阿里云核心产品全面升级 立即下载
AIGC 浪潮之上,森马的 Serverless 实践之旅 立即下载
极氪大数据 Serverless 应用实践 立即下载