fs.StringVar(&options.config.ClientConnection.KubeConfigFile,"kubeconfig",options.config.ClientConnection.KubeConfigFile,"Path to kubeconfig file with authorization information (the master location is set by the master flag).")
fs.StringVar(&options.config.ClientConnection.KubeConfigFile,"kubeconfig",options.config.ClientConnection.KubeConfigFile,"Path to kubeconfig file with authorization information (the master location is set by the master flag).")
fs.Var(componentconfig.PortRangeVar{Val:&options.config.PortRange},"proxy-port-range","Range of host ports (beginPort-endPort, inclusive) that may be consumed in order to proxy service traffic. If unspecified (0-0) then ports will be randomly chosen.")
fs.Var(componentconfig.PortRangeVar{Val:&options.config.PortRange},"proxy-port-range","Range of host ports (beginPort-endPort, inclusive) that may be consumed in order to proxy service traffic. If unspecified (0-0) then ports will be randomly chosen.")
fs.StringVar(&options.config.HostnameOverride,"hostname-override",options.config.HostnameOverride,"If non-empty, will use this string as identification instead of the actual hostname.")
fs.StringVar(&options.config.HostnameOverride,"hostname-override",options.config.HostnameOverride,"If non-empty, will use this string as identification instead of the actual hostname.")
fs.Var(&options.config.Mode,"proxy-mode","Which proxy mode to use: 'userspace' (older) or 'iptables' (faster). If blank, use the best-available proxy (currently iptables). If the iptables proxy is selected, regardless of how, but the system's kernel or iptables versions are insufficient, this always falls back to the userspace proxy.")
fs.Var(&options.config.Mode,"proxy-mode","Which proxy mode to use: 'userspace' (older) or 'iptables' (faster) or 'ipvs'(experimental). If blank, use the best-available proxy (currently iptables). If the iptables proxy is selected, regardless of how, but the system's kernel or iptables versions are insufficient, this always falls back to the userspace proxy.")
fs.Int32Var(options.config.IPTables.MasqueradeBit,"iptables-masquerade-bit",utilpointer.Int32PtrDerefOr(options.config.IPTables.MasqueradeBit,14),"If using the pure iptables proxy, the bit of the fwmark space to mark packets requiring SNAT with. Must be within the range [0, 31].")
fs.Int32Var(options.config.IPTables.MasqueradeBit,"iptables-masquerade-bit",utilpointer.Int32PtrDerefOr(options.config.IPTables.MasqueradeBit,14),"If using the pure iptables proxy, the bit of the fwmark space to mark packets requiring SNAT with. Must be within the range [0, 31].")
fs.DurationVar(&options.config.IPTables.SyncPeriod.Duration,"iptables-sync-period",options.config.IPTables.SyncPeriod.Duration,"The maximum interval of how often iptables rules are refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.")
fs.DurationVar(&options.config.IPTables.SyncPeriod.Duration,"iptables-sync-period",options.config.IPTables.SyncPeriod.Duration,"The maximum interval of how often iptables rules are refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.")
fs.DurationVar(&options.config.IPTables.MinSyncPeriod.Duration,"iptables-min-sync-period",options.config.IPTables.MinSyncPeriod.Duration,"The minimum interval of how often the iptables rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m').")
fs.DurationVar(&options.config.IPTables.MinSyncPeriod.Duration,"iptables-min-sync-period",options.config.IPTables.MinSyncPeriod.Duration,"The minimum interval of how often the iptables rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m').")
fs.DurationVar(&options.config.IPVS.SyncPeriod.Duration,"ipvs-sync-period",options.config.IPVS.SyncPeriod.Duration,"The maximum interval of how often ipvs rules are refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.")
fs.DurationVar(&options.config.IPVS.MinSyncPeriod.Duration,"ipvs-min-sync-period",options.config.IPVS.MinSyncPeriod.Duration,"The minimum interval of how often the ipvs rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m').")
fs.DurationVar(&options.config.ConfigSyncPeriod.Duration,"config-sync-period",options.config.ConfigSyncPeriod.Duration,"How often configuration from the apiserver is refreshed. Must be greater than 0.")
fs.DurationVar(&options.config.ConfigSyncPeriod.Duration,"config-sync-period",options.config.ConfigSyncPeriod.Duration,"How often configuration from the apiserver is refreshed. Must be greater than 0.")
fs.BoolVar(&options.config.IPTables.MasqueradeAll,"masquerade-all",options.config.IPTables.MasqueradeAll,"If using the pure iptables proxy, SNAT everything (this not commonly needed)")
fs.BoolVar(&options.config.IPTables.MasqueradeAll,"masquerade-all",options.config.IPTables.MasqueradeAll,"If using the pure iptables proxy, SNAT everything (this not commonly needed)")
fs.StringVar(&options.config.ClusterCIDR,"cluster-cidr",options.config.ClusterCIDR,"The CIDR range of pods in the cluster. It is used to bridge traffic coming from outside of the cluster. If not provided, no off-cluster bridging will be performed.")
fs.StringVar(&options.config.ClusterCIDR,"cluster-cidr",options.config.ClusterCIDR,"The CIDR range of pods in the cluster. It is used to bridge traffic coming from outside of the cluster. If not provided, no off-cluster bridging will be performed.")
"NAT timeout for TCP connections in the CLOSE_WAIT state")
"NAT timeout for TCP connections in the CLOSE_WAIT state")
fs.BoolVar(&options.config.EnableProfiling,"profiling",options.config.EnableProfiling,"If true enables profiling via web interface on /debug/pprof handler.")
fs.BoolVar(&options.config.EnableProfiling,"profiling",options.config.EnableProfiling,"If true enables profiling via web interface on /debug/pprof handler.")
fs.StringVar(&options.config.IPVS.Scheduler,"ipvs-scheduler",options.config.IPVS.Scheduler,"The ipvs scheduler type when proxy mode is ipvs")
glog.Warning("WARNING: all flags other than --config, --write-config-to, and --cleanup-iptables are deprecated. Please begin using a config file ASAP.")
glog.Warning("WARNING: all flags other than --config, --write-config-to, and --cleanup are deprecated. Please begin using a config file ASAP.")