V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
sunzhenyucn
V2EX  ›  Kubernetes

如何获取 K8S 集群中的 GPU 资源数量呢

  •  1
     
  •   sunzhenyucn · 2020-05-29 15:46:24 +08:00 · 2592 次点击
    这是一个创建于 1420 天前的主题,其中的信息可能已经有所发展或是发生改变。

    如题,我看了相关的 K8S 的 API,貌似暂时没有这种功能?
    主要是用这个 API 来实现根据集群内的 GPU 资源情况调度任务。

    4 条回复    2020-11-19 16:10:28 +08:00
    qoras
        1
    qoras  
       2020-05-29 17:10:26 +08:00
    应该是自己实现 GPU 相关的资源统计吧. 没有现成的 API 的话, 需要自己扩展
    FogDong
        2
    FogDong  
       2020-07-13 14:34:18 +08:00
    需要通过 extended resource 自己来实现
    sunzhenyucn
        3
    sunzhenyucn  
    OP
       2020-07-13 17:11:44 +08:00
    @FogDong 额 已经解决了 通过 K8S Client 指定 nvidia.com/gpu 获取即可
    lryepoch
        4
    lryepoch  
       2020-11-19 16:10:28 +08:00
    大佬能详细说说思路吗?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3649 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 04:24 · PVG 12:24 · LAX 21:24 · JFK 00:24
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.