mirror of https://github.com/k3s-io/k3s
allow disabling the scheduler port
parent
28f6b3fcc0
commit
61de1ba986
|
@ -93,7 +93,9 @@ func Run(s *options.SchedulerServer) error {
|
|||
return fmt.Errorf("error creating scheduler: %v", err)
|
||||
}
|
||||
|
||||
go startHTTP(s)
|
||||
if s.Port != -1 {
|
||||
go startHTTP(s)
|
||||
}
|
||||
|
||||
stop := make(chan struct{})
|
||||
defer close(stop)
|
||||
|
|
Loading…
Reference in New Issue