kube-proxy: add '--bind-address-hard-fail' flag to treat failure to bind to a port as fatal

Signed-off-by: SataQiu <1527062125@qq.com>

Kubernetes-commit: 871b90ba23920573e27f75a2c62b8a5362fdb064
This commit is contained in:
SataQiu 2020-04-02 13:13:10 +08:00 committed by Kubernetes Publisher
parent 498b5b253a
commit 3d39bab399
1 changed files with 2 additions and 0 deletions

View File

@ -116,6 +116,8 @@ type KubeProxyConfiguration struct {
// metricsBindAddress is the IP address and port for the metrics server to serve on,
// defaulting to 127.0.0.1:10249 (set to 0.0.0.0 for all interfaces)
MetricsBindAddress string `json:"metricsBindAddress"`
// bindAddressHardFail, if true, kube-proxy will treat failure to bind to a port as fatal and exit
BindAddressHardFail bool `json:"bindAddressHardFail"`
// enableProfiling enables profiling via web interface on /debug/pprof handler.
// Profiling handlers will be handled by metrics server.
EnableProfiling bool `json:"enableProfiling"`