Uploaded image for project: 'Apache YuniKorn'
  1. Apache YuniKorn
  2. YUNIKORN-2271

Incorrect handling of GPU only resources

    XMLWordPrintableJSON

Details

    Description

      https://github.com/apache/yunikorn-k8shim/blob/a118ba6c4d84804e2a407f9d91196ece4690cf09/pkg/common/resource.go#L61-L63 this code seems to have a bug. When I define resource like this:

      request:
        nvidia.com/gpu: 1
      limit:
        nvidia.com/gpu: 1
       

      this is considered as QoS best effort and returned with just

      Resources:
        pod:1
      

      but I think this is a valid configuration that a pod only specifies GPU resource without memory or CPU. It seems this is the K8s upstream code: qos.GetPodQOS() causes this..

      Attachments

        Issue Links

          Activity

            People

              zhuqi Qi Zhu
              wwei Weiwei Yang
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: