// healthzPort is the port to be used by the healthz server.
// healthzPort is the port to be used by the healthz server.
healthzPortint32
healthzPortint32
// metricsPort is the port to be used by the metrics server.
metricsPortint32
scheme*runtime.Scheme
scheme*runtime.Scheme
codecsserializer.CodecFactory
codecsserializer.CodecFactory
...
@@ -134,8 +136,9 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
...
@@ -134,8 +136,9 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
fs.Var(utilflag.IPVar{Val:&o.config.BindAddress},"bind-address","The IP address for the proxy server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Var(utilflag.IPVar{Val:&o.config.BindAddress},"bind-address","The IP address for the proxy server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.StringVar(&o.master,"master",o.master,"The address of the Kubernetes API server (overrides any value in kubeconfig)")
fs.StringVar(&o.master,"master",o.master,"The address of the Kubernetes API server (overrides any value in kubeconfig)")
fs.Int32Var(&o.healthzPort,"healthz-port",o.healthzPort,"The port to bind the health check server. Use 0 to disable.")
fs.Int32Var(&o.healthzPort,"healthz-port",o.healthzPort,"The port to bind the health check server. Use 0 to disable.")
fs.Var(utilflag.IPVar{Val:&o.config.HealthzBindAddress},"healthz-bind-address","The IP address and port for the health check server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Var(utilflag.IPVar{Val:&o.config.HealthzBindAddress},"healthz-bind-address","The IP address for the health check server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Var(utilflag.IPVar{Val:&o.config.MetricsBindAddress},"metrics-bind-address","The IP address and port for the metrics server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Int32Var(&o.metricsPort,"metrics-port",o.metricsPort,"The port to bind the metrics server. Use 0 to disable.")
fs.Var(utilflag.IPVar{Val:&o.config.MetricsBindAddress},"metrics-bind-address","The IP address for the metrics server to serve on (set to `0.0.0.0` for all IPv4 interfaces and `::` for all IPv6 interfaces)")
fs.Int32Var(o.config.OOMScoreAdj,"oom-score-adj",utilpointer.Int32PtrDerefOr(o.config.OOMScoreAdj,int32(qos.KubeProxyOOMScoreAdj)),"The oom-score-adj value for kube-proxy process. Values must be within the range [-1000, 1000]")
fs.Int32Var(o.config.OOMScoreAdj,"oom-score-adj",utilpointer.Int32PtrDerefOr(o.config.OOMScoreAdj,int32(qos.KubeProxyOOMScoreAdj)),"The oom-score-adj value for kube-proxy process. Values must be within the range [-1000, 1000]")
fs.StringVar(&o.config.ResourceContainer,"resource-container",o.config.ResourceContainer,"Absolute name of the resource-only container to create and run the Kube-proxy in (Default: /kube-proxy).")
fs.StringVar(&o.config.ResourceContainer,"resource-container",o.config.ResourceContainer,"Absolute name of the resource-only container to create and run the Kube-proxy in (Default: /kube-proxy).")
fs.MarkDeprecated("resource-container","This feature will be removed in a later release.")
fs.MarkDeprecated("resource-container","This feature will be removed in a later release.")