gpushare-scheduler-extender icon indicating copy to clipboard operation
gpushare-scheduler-extender copied to clipboard

Not able to use gpushare-scheduler-extender on EKS cluster with Kubernetes v1.24

Open suchisur opened this issue 1 year ago • 2 comments

With refernce to https://github.com/AliyunContainerService/gpushare-scheduler-extender/issues/145 , there has been a olution given to use the extender in EKS, however the solution only works for Kubernetes v1.23 and below. Since kubernetes v1.24, there has been a removal of scheduling policies , they are no longer supported(https://kubernetes.io/docs/reference/scheduling/policies/) instead scheduler configurations(https://kubernetes.io/docs/reference/scheduling/config/) should be used. Have tried using the new KubeSchedulerConfiguration by editing the configmap. The image has changed as well, and the pods do not come up. Any help would be appreciated

suchisur avatar Mar 15 '23 15:03 suchisur

Hi, you can modify the schedule framework config like the following:

---
apiVersion: kubescheduler.config.k8s.io/v1beta2
kind: KubeSchedulerConfiguration
clientConnection:
  kubeconfig: /etc/kubernetes/scheduler.conf
extenders:
- urlPrefix: "http://127.0.0.1:32766/gpushare-scheduler"
  filterVerb: filter
  bindVerb: bind
  enableHTTPS: false
  nodeCacheCapable: true
  managedResources:
  - name: aliyun.com/gpu-mem
    ignoredByScheduler: false
  ignorable: false

And add policy config file parameter in scheduler arguments like this: --config=/etc/kubernetes/schedule-framework-config.yaml

KunWuLuan avatar Mar 16 '23 02:03 KunWuLuan

https://github.com/AliyunContainerService/gpushare-scheduler-extender/issues/145#issuecomment-1480903615

YuuinIH avatar Mar 23 '23 10:03 YuuinIH