The Kubernetes network proxy runs on each node. This reflects services as defined in the Kubernetes API on each node and can do simple TCP, UDP, and SCTP stream forwarding or round robin TCP, UDP, and SCTP forwarding across a set of backends. Service cluster IPs and ports are currently found through Docker-links-compatible environment variables specifying ports opened by the service proxy. There is an optional addon that provides cluster DNS for these cluster IPs. The user must create a service with the apiserver API to configure the proxy.
If true, adds the file directory to the header of the log messages
log to standard error as well as files
Path to the file containing Azure container registry configuration information.
|--bind-address string Default: 0.0.0.0|
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)
If true kube-proxy will treat failure to bind to a port as fatal and exit
|--boot-id-file string Default: "/proc/sys/kernel/random/boot_id"|
Comma-separated list of files to check for boot-id. Use the first one that exists.
If true cleanup iptables and ipvs rules and exit.
|--cloud-provider-gce-l7lb-src-cidrs cidrs Default: 184.108.40.206/22,220.127.116.11/16|
CIDRs opened in GCE firewall for L7 LB traffic proxy & health checks
|--cloud-provider-gce-lb-src-cidrs cidrs Default: 18.104.22.168/22,22.214.171.124/22,126.96.36.199/22,188.8.131.52/16|
CIDRs opened in GCE firewall for L4 LB traffic proxy & health checks
The CIDR range of pods in the cluster. When configured, traffic sent to a Service cluster IP from outside this range will be masqueraded and traffic sent from pods to an external LoadBalancer IP will be directed to the respective cluster IP instead
The path to the configuration file.
|--config-sync-period duration Default: 15m0s|
How often configuration from the apiserver is refreshed. Must be greater than 0.
|--conntrack-max-per-core int32 Default: 32768|
Maximum number of NAT connections to track per CPU core (0 to leave the limit as-is and ignore conntrack-min).
|--conntrack-min int32 Default: 131072|
Minimum number of conntrack entries to allocate, regardless of conntrack-max-per-core (set conntrack-max-per-core=0 to leave the limit as-is).
|--conntrack-tcp-timeout-close-wait duration Default: 1h0m0s|
NAT timeout for TCP connections in the CLOSE_WAIT state
|--conntrack-tcp-timeout-established duration Default: 24h0m0s|
Idle timeout for established TCP connections (0 to leave as-is)
|--default-not-ready-toleration-seconds int Default: 300|
Indicates the tolerationSeconds of the toleration for notReady:NoExecute that is added by default to every pod that does not already have such a toleration.
|--default-unreachable-toleration-seconds int Default: 300|
Indicates the tolerationSeconds of the toleration for unreachable:NoExecute that is added by default to every pod that does not already have such a toleration.
Mode to use to detect local traffic
|--feature-gates <comma-separated 'key=True|False' pairs>|
A set of key=value pairs that describe feature gates for alpha/experimental features. Options are:
|--healthz-bind-address ipport Default: 0.0.0.0:10256|
The IP address with port for the health check server to serve on (set to '0.0.0.0:10256' for all IPv4 interfaces and '[::]:10256' for all IPv6 interfaces). Set empty to disable.
help for kube-proxy
If non-empty, will use this string as identification instead of the actual hostname.
|--iptables-masquerade-bit int32 Default: 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].
|--iptables-min-sync-period duration Default: 1s|
The minimum interval of how often the iptables rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m').
|--iptables-sync-period duration Default: 30s|
The maximum interval of how often iptables rules are refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.
A comma-separated list of CIDR's which the ipvs proxier should not touch when cleaning up IPVS rules.
The minimum interval of how often the ipvs rules can be refreshed as endpoints and services change (e.g. '5s', '1m', '2h22m').
The ipvs scheduler type when proxy mode is ipvs
Enable strict ARP by setting arp_ignore to 1 and arp_announce to 2
|--ipvs-sync-period duration Default: 30s|
The maximum interval of how often ipvs rules are refreshed (e.g. '5s', '1m', '2h22m'). Must be greater than 0.
The timeout for idle IPVS TCP connections, 0 to leave as-is. (e.g. '5s', '1m', '2h22m').
The timeout for IPVS TCP connections after receiving a FIN packet, 0 to leave as-is. (e.g. '5s', '1m', '2h22m').
The timeout for IPVS UDP packets, 0 to leave as-is. (e.g. '5s', '1m', '2h22m').
|--kube-api-burst int32 Default: 10|
Burst to use while talking with kubernetes apiserver
|--kube-api-content-type string Default: "application/vnd.kubernetes.protobuf"|
Content type of requests sent to apiserver.
|--kube-api-qps float Default: 5|
QPS to use while talking with kubernetes apiserver
Path to kubeconfig file with authorization information (the master location can be overridden by the master flag).
|--log-backtrace-at <a string in the form 'file:N'> Default: :0|
when logging hits line file:N, emit a stack trace
If non-empty, write log files in this directory
If non-empty, use this log file
|--log-file-max-size uint Default: 1800|
Defines the maximum size a log file can grow to. Unit is megabytes. If the value is 0, the maximum file size is unlimited.
|--log-flush-frequency duration Default: 5s|
Maximum number of seconds between log flushes
|--logtostderr Default: true|
log to standard error instead of files
|--machine-id-file string Default: "/etc/machine-id,/var/lib/dbus/machine-id"|
Comma-separated list of files to check for machine-id. Use the first one that exists.
If using the pure iptables proxy, SNAT all traffic sent via Service cluster IPs (this not commonly needed)
The address of the Kubernetes API server (overrides any value in kubeconfig)
|--metrics-bind-address ipport Default: 127.0.0.1:10249|
The IP address with port for the metrics server to serve on (set to '0.0.0.0:10249' for all IPv4 interfaces and '[::]:10249' for all IPv6 interfaces). Set empty to disable.
A string slice of values which specify the addresses to use for NodePorts. Values may be valid IP blocks (e.g. 184.108.40.206/24, 220.127.116.11/32). The default empty string slice () means to use all local addresses.
If true, only write logs to their native severity level (vs also writing to each lower severity level)
|--oom-score-adj int32 Default: -999|
The oom-score-adj value for kube-proxy process. Values must be within the range [-1000, 1000]
If true enables profiling via web interface on /debug/pprof handler.
Which proxy mode to use: 'userspace' (older) or 'iptables' (faster) or 'ipvs' or 'kernelspace' (windows). 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.
Range of host ports (beginPort-endPort, single port or beginPort+offset, inclusive) that may be consumed in order to proxy service traffic. If (unspecified, 0, or 0-0) then ports will be randomly chosen.
The previous version for which you want to show hidden metrics. Only the previous minor version is meaningful, other values will not be allowed. The format is ., e.g.: '1.16'. The purpose of this format is make sure you have the opportunity to notice if the next release hides additional metrics, rather than being surprised when they are permanently removed in the release after that.
If true, avoid header prefixes in the log messages
If true, avoid headers when opening log files
|--stderrthreshold int Default: 2|
logs at or above this threshold go to stderr
|--udp-timeout duration Default: 250ms|
How long an idle UDP connection will be kept open (e.g. '250ms', '2s'). Must be greater than 0. Only applicable for proxy-mode=userspace
|-v, --v int|
number for the log level verbosity
Print version information and quit
|--vmodule <comma-separated 'pattern=N' settings>|
comma-separated list of pattern=N settings for file-filtered logging
If set, write the default configuration values to this file and exit.