Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E0218 15:11:18.399660 35165 run.go:74] "command failed" err="stat /var/run/kubernetes/scheduler.kubeconfig: no such file or directory" #8

Open
passeng02 opened this issue Feb 18, 2024 · 0 comments

Comments

@passeng02
Copy link

I am trying out your kube scheduler extension tutorial at https://developer.ibm.com/articles/creating-a-custom-kube-scheduler/
with minikube on local linux machine.

Made some modifications to the config.yaml file to make do with latest KubeSchedulerConfiguration format. (phase out of policy.json support)

scheduler=extender-config.yaml :

apiVersion: kubescheduler.config.k8s.io/v1
kind: KubeSchedulerConfiguration
clientConnection:
   kubeconfig: "etc/srv/kubernetes/kube-scheduler/kubeconfig"
extenders: [{
        urlPrefix: "http://localhost:8888/",
        filterVerb: "filter",
        prioritizeVerb: "prioritize",
        weight: 1,
        enableHTTPS: false
    }]

When I tried running kube-scheduler --config scheduler=extender-config.yaml ,
I received kube-scheduler : command not found error.

Then I installed kube-scheduler with sudo snap.

But then, still receiving the follwing error message with kube-scheduler --config scheduler=extender-config.yaml command.
Screenshot from 2024-02-18 15-17-28

Searched in the web for the error. But couldn't find the solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant