Skip to content

Commit 05010d2

Browse files
committed
clarify apiserver bind-address flag usage
From the listen godoc: For TCP networks, if the host in the address parameter is empty or a literal unspecified IP address, Listen listens on all available unicast and anycast IP addresses of the local system. Since the BindNetwork options is "tcp" by default, using an unspecified address doesn't bind the listener to the IP family.
1 parent 124a49c commit 05010d2

File tree

1 file changed

+1
-1
lines changed
  • staging/src/k8s.io/apiserver/pkg/server/options

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ func (s *SecureServingOptions) AddFlags(fs *pflag.FlagSet) {
143143
fs.IPVar(&s.BindAddress, "bind-address", s.BindAddress, ""+
144144
"The IP address on which to listen for the --secure-port port. The "+
145145
"associated interface(s) must be reachable by the rest of the cluster, and by CLI/web "+
146-
"clients. If blank, all interfaces will be used (0.0.0.0 for all IPv4 interfaces and :: for all IPv6 interfaces).")
146+
"clients. If blank or an unspecified address (0.0.0.0 or ::), all interfaces will be used.")
147147

148148
desc := "The port on which to serve HTTPS with authentication and authorization."
149149
if s.Required {

0 commit comments

Comments
 (0)