Commit dbb7b04c authored by Darren Shepherd's avatar Darren Shepherd

Add option to disable scheduler

parent dcf28d98
......@@ -31,6 +31,7 @@ type Server struct {
StorageKeyFile string
AdvertiseIP string
AdvertisePort int
DisableScheduler bool
}
var ServerConfig Server
......@@ -191,6 +192,11 @@ func NewServerCommand(action func(*cli.Context) error) cli.Command {
Value: 0,
Destination: &ServerConfig.AdvertisePort,
},
cli.BoolFlag{
Name: "disable-scheduler",
Usage: "Disable Kubernetes default scheduler",
Destination: &ServerConfig.DisableScheduler,
},
NodeIPFlag,
NodeNameFlag,
DockerFlag,
......
......@@ -100,6 +100,7 @@ func run(app *cli.Context, cfg *cmds.Server) error {
serverConfig.ControlConfig.DataDir = cfg.DataDir
serverConfig.ControlConfig.KubeConfigOutput = cfg.KubeConfigOutput
serverConfig.ControlConfig.KubeConfigMode = cfg.KubeConfigMode
serverConfig.ControlConfig.NoScheduler = cfg.DisableScheduler
serverConfig.Rootless = cfg.Rootless
serverConfig.TLSConfig.HTTPSPort = cfg.HTTPSPort
serverConfig.TLSConfig.HTTPPort = cfg.HTTPPort
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment