mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-29 14:37:00 +00:00
allow disabling the scheduler port
This commit is contained in:
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
Block a user