AliyunContainerService / gpushare-scheduler-extender

GPU Sharing Scheduler for Kubernetes Cluster
Apache License 2.0
1.39k stars 309 forks source link

k3s services not started scheduler exited: stat /etc/kubernetes/scheduler.conf: no such file or directory #196

Open RotemAmergi opened 1 year ago

RotemAmergi commented 1 year ago

Hi ,

I'm using k3s with version v1.25.4+k3s1 .

When i'm trying to run the new configuration that you did to version 1.23+

I used this commit - https://github.com/AliyunContainerService/gpushare-scheduler-extender/commit/ab2a0ef3f36b6ebb9e021e483ed9ede655fd93d9

and get the error k3s services not started scheduler exited: stat /etc/kubernetes/scheduler.conf: no such file or directory .

this is come from https://github.com/AliyunContainerService/gpushare-scheduler-extender/blob/master/config/scheduler-policy-config.yaml

This is missing at k3s -

clientConnection: kubeconfig: /etc/kubernetes/scheduler.conf

Thanks

antikilahdjs commented 1 year ago

Hello,

You need check permissions then check the correct scheduler-policy file in the path /etc/kuberbetes and mount it under your kube-schedule as documentation says https://github.com/AliyunContainerService/gpushare-scheduler-extender/blob/master/config/kube-scheduler-v1.23%2B.yaml