// 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
...
@@ -133,8 +135,9 @@ func (o *Options) AddFlags(fs *pflag.FlagSet) {
...
@@ -133,8 +135,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.")
// These flags were also implicit from cadvisor, but are actually used by something in the core repo:
// TODO(mtaufen): This one is stil used by our salt, but for heaven's sake it's even deprecated in cadvisor
register(global,local,"docker_root")
// e2e node tests rely on this
register(global,local,"housekeeping_interval")
// These flags were implicit from cadvisor, and are mistakes that should be registered deprecated:
constdeprecated="This is a cadvisor flag that was mistakenly registered with the Kubelet. Due to legacy concerns, it will follow the standard CLI deprecation timeline before being removed."
"description":"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links.",
"description":"EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true.",
klog.Warningf("azureMount: mount options(%q) command number(%d) less than 2, source:%q, target:%q, skip mounting",
klog.Warningf("mount options(%q) command number(%d) less than 2, source:%q, target:%q, skip mounting",
options,len(options),source,target)
options,len(options),source,target)
returnnil
returnnil
}
}
// currently only cifs mount is supported
// currently only cifs mount is supported
ifstrings.ToLower(fstype)!="cifs"{
ifstrings.ToLower(fstype)!="cifs"{
returnfmt.Errorf("azureMount: only cifs mount is supported now, fstype: %q, mounting source (%q), target (%q), with options (%q)",fstype,source,target,options)
returnfmt.Errorf("only cifs mount is supported now, fstype: %q, mounting source (%q), target (%q), with options (%q)",fstype,source,target,options)