You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.
问题描述
群里有些小伙伴私聊问我如何基于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,然后进入测试环节。
备注
建议群里大佬出个分享文章?
The text was updated successfully, but these errors were encountered: