diff --git a/cmd/controller-manager/app/options/insecure_serving.go b/cmd/controller-manager/app/options/insecure_serving.go index ca379f1314..3f98437a6c 100644 --- a/cmd/controller-manager/app/options/insecure_serving.go +++ b/cmd/controller-manager/app/options/insecure_serving.go @@ -53,8 +53,8 @@ func (s *InsecureServingOptions) Validate() []error { errors := []error{} - if s.BindPort < 0 || s.BindPort > 32767 { - errors = append(errors, fmt.Errorf("--insecure-port %v must be between 0 and 32767, inclusive. 0 for turning off insecure (HTTP) port", s.BindPort)) + if s.BindPort < 0 || s.BindPort > 65335 { + errors = append(errors, fmt.Errorf("--insecure-port %v must be between 0 and 65535, inclusive. 0 for turning off insecure (HTTP) port", s.BindPort)) } return errors