diff --git a/cmd/kube-scheduler/app/options/insecure_serving.go b/cmd/kube-scheduler/app/options/insecure_serving.go index 15ffed295d7..1ae913a5944 100644 --- a/cmd/kube-scheduler/app/options/insecure_serving.go +++ b/cmd/kube-scheduler/app/options/insecure_serving.go @@ -152,7 +152,7 @@ func (o *CombinedInsecureServingOptions) Validate() []error { errors := []error{} - if o.BindPort <= 0 || o.BindPort > 32767 { + if o.BindPort < 0 || o.BindPort > 32767 { errors = append(errors, fmt.Errorf("--port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", o.BindPort)) }