mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-24 20:24:09 +00:00
Surface help for insecure ports to explain how to disable
This commit is contained in:
parent
1cd6ccb344
commit
819b502768
@ -85,11 +85,13 @@ func (s *DeprecatedInsecureServingOptions) AddUnqualifiedFlags(fs *pflag.FlagSet
|
|||||||
}
|
}
|
||||||
|
|
||||||
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
|
fs.IPVar(&s.BindAddress, "address", s.BindAddress,
|
||||||
"DEPRECATED: see --bind-address instead.")
|
"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).")
|
||||||
fs.MarkDeprecated("address", "see --bind-address instead.")
|
fs.MarkDeprecated("address", "see --bind-address instead.")
|
||||||
|
fs.Lookup("address").Hidden = false
|
||||||
|
|
||||||
fs.IntVar(&s.BindPort, "port", s.BindPort, "DEPRECATED: see --secure-port instead.")
|
fs.IntVar(&s.BindPort, "port", s.BindPort, "The port on which to serve unsecured, unauthenticated access. Set to 0 to disable.")
|
||||||
fs.MarkDeprecated("port", "see --secure-port instead.")
|
fs.MarkDeprecated("port", "see --secure-port instead.")
|
||||||
|
fs.Lookup("port").Hidden = false
|
||||||
}
|
}
|
||||||
|
|
||||||
// ApplyTo adds DeprecatedInsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration.
|
// ApplyTo adds DeprecatedInsecureServingOptions to the insecureserverinfo amd kube-controller manager configuration.
|
||||||
|
Loading…
Reference in New Issue
Block a user