Slide 19
Slide 19 text
#k8sjp
Out-of-Tree スケジューラの実装
import scheduler "k8s.io/kubernetes/cmd/kube-scheduler/app"
func main() {
command := scheduler.NewSchedulerCommand(
scheduler.WithPlugin("my-plugin-1", MyPlugin1),
scheduler.WithPlugin("my-plugin-2", MyPlugin2),
...,
)
if err := command.Execute(); err != nil {
fmt.Printf(os.Stderr, "%v\n", err)
os.Exit(1)
}
}