Refactor handling of local traffic detection.
Kubernetes-commit: 8c6956e5bb4f9557e6ba459f1f6bbcb80e3b5b80
This commit is contained in:
parent
e8d2dcd19a
commit
cafffb64d4
|
@ -160,6 +160,8 @@ type KubeProxyConfiguration struct {
|
|||
Winkernel KubeProxyWinkernelConfiguration `json:"winkernel"`
|
||||
// ShowHiddenMetricsForVersion is the version for which you want to show hidden metrics.
|
||||
ShowHiddenMetricsForVersion string `json:"showHiddenMetricsForVersion"`
|
||||
// DetectLocalMode determines mode to use for detecting local traffic, defaults to LocalModeClusterCIDR
|
||||
DetectLocalMode LocalMode `json:"detectLocalMode"`
|
||||
}
|
||||
|
||||
// Currently, three modes of proxy are available in Linux platform: 'userspace' (older, going to be EOL), 'iptables'
|
||||
|
@ -176,3 +178,6 @@ type KubeProxyConfiguration struct {
|
|||
// future). If winkernel proxy is selected, regardless of how, but the Windows kernel can't support this mode of proxy,
|
||||
// this always falls back to the userspace proxy.
|
||||
type ProxyMode string
|
||||
|
||||
// LocalMode represents modes to detect local traffic from the node
|
||||
type LocalMode string
|
||||
|
|
Loading…
Reference in New Issue