Skip to content

Commit 611c351

Browse files
authored
Merge pull request kubernetes#71601 from liggitt/surface-insecure-port-help
Surface help for insecure ports to explain how to disable
2 parents 16fb54e + 819b502 commit 611c351

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

staging/src/k8s.io/apiserver/pkg/server/options/deprecated_insecure_serving.go

+4-2
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,13 @@ func (s *DeprecatedInsecureServingOptions) AddUnqualifiedFlags(fs *pflag.FlagSet
8585
}
8686

8787
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
88-
"DEPRECATED: see --bind-address instead.")
88+
"The IP address on which to serve the insecure --port (set to 0.0.0.0 for all IPv4 interfaces and :: for all IPv6 interfaces).")
8989
fs.MarkDeprecated("address", "see --bind-address instead.")
90+
fs.Lookup("address").Hidden = false
9091

91-
fs.IntVar(&s.BindPort, "port", s.BindPort, "DEPRECATED: see --secure-port instead.")
92+
fs.IntVar(&s.BindPort, "port", s.BindPort, "The port on which to serve unsecured, unauthenticated access. Set to 0 to disable.")
9293
fs.MarkDeprecated("port", "see --secure-port instead.")
94+
fs.Lookup("port").Hidden = false
9395
}
9496

9597
// ApplyTo adds DeprecatedInsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration.

0 commit comments

Comments
 (0)