How to add a new scheduler priority to the default kubernetes scheduler? How to add a new scheduler priority to the default kubernetes scheduler? kubernetes kubernetes

How to add a new scheduler priority to the default kubernetes scheduler?


You can run your scheduler as a kubernetes deployment.

Kelsey Hightower has an example scheduler coded up on Github

The meat and bones of this is here: https://github.com/kelseyhightower/scheduler/blob/master/bestprice.go

And the deployment yaml is here

Essentially, you can package it up as a docker container and deploy it.

Take note of the way you interact with the k8s API using this package in order to do it this way you'll need to have a similar wrapper, but it's much easier than building/recompiling the whole k8s package.