Merge pull request #97245 from aojea/anycastAddress
bind-address flag usage Kubernetes-commit: 87984d84d18c7816835e5efedebb17ed13aa2509
This commit is contained in:
commit
6d407d18a2
|
|
@ -68,7 +68,7 @@ func (s *DeprecatedInsecureServingOptions) AddFlags(fs *pflag.FlagSet) {
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.IPVar(&s.BindAddress, "insecure-bind-address", s.BindAddress, ""+
|
fs.IPVar(&s.BindAddress, "insecure-bind-address", s.BindAddress, ""+
|
||||||
"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).")
|
"The IP address on which to serve the --insecure-port (set to 0.0.0.0 or :: for listening in all interfaces and IP families).")
|
||||||
// Though this flag is deprecated, we discovered security concerns over how to do health checks without it e.g. #43784
|
// Though this flag is deprecated, we discovered security concerns over how to do health checks without it e.g. #43784
|
||||||
fs.MarkDeprecated("insecure-bind-address", "This flag will be removed in a future version.")
|
fs.MarkDeprecated("insecure-bind-address", "This flag will be removed in a future version.")
|
||||||
fs.Lookup("insecure-bind-address").Hidden = false
|
fs.Lookup("insecure-bind-address").Hidden = false
|
||||||
|
|
@ -87,7 +87,7 @@ func (s *DeprecatedInsecureServingOptions) AddUnqualifiedFlags(fs *pflag.FlagSet
|
||||||
}
|
}
|
||||||
|
|
||||||
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
|
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
|
||||||
"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).")
|
"The IP address on which to serve the insecure --port (set to '0.0.0.0' or '::' for listening in all interfaces and IP families).")
|
||||||
fs.MarkDeprecated("address", "see --bind-address instead.")
|
fs.MarkDeprecated("address", "see --bind-address instead.")
|
||||||
fs.Lookup("address").Hidden = false
|
fs.Lookup("address").Hidden = false
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue