Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

分享如何调度器framework扩展 #56

Open
JaneLiuL opened this issue Oct 26, 2020 · 1 comment
Open

分享如何调度器framework扩展 #56

JaneLiuL opened this issue Oct 26, 2020 · 1 comment

Comments

@JaneLiuL
Copy link
Member

问题描述

群里有些小伙伴私聊问我如何基于scheduler framework扩展自己的应用,在这里粗略说一下。

假如是基于打分环节扩展,首先需要实现接口,包括Name,Score和ScoreExtensions。
实现完成之后,可以在cmd/kube-scheduler/scheduler.go里面加上
command := app.NewSchedulerCommand( app.WithPlugin(nodeload.Name, nodeload.New) )
然后编译,待编译完成,由于我是用kubeadm安装的集群,所以我的调度器是读的/etc/kuberxx/manifest/kube-scheduler.yml启动的pod,移走文件之后,然后用编译好的二进制启动./kube-scheduler --config=config.xml,然后进入测试环节。

备注

建议群里大佬出个分享文章?

@stewart-yu
Copy link

调度器有自己的扩展方式, 类似kube-apiserver的webhook一样

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

No branches or pull requests

3 participants