support configuration of kube-proxy IPVS tcp,tcpfin,udp timeout
Signed-off-by: Andrew Sy Kim <kiman@vmware.com> Kubernetes-commit: db2c048db9c7572b2bbc66cba3865a258b2a44fa
This commit is contained in:
parent
eef03c7a7c
commit
310c8aae97
|
@ -54,6 +54,15 @@ type KubeProxyIPVSConfiguration struct {
|
|||
// strict ARP configure arp_ignore and arp_announce to avoid answering ARP queries
|
||||
// from kube-ipvs0 interface
|
||||
StrictARP bool `json:"strictARP"`
|
||||
// tcpTimeout is the timeout value used for idle IPVS TCP sessions.
|
||||
// The default value is 0, which preserves the current timeout value on the system.
|
||||
TCPTimeout metav1.Duration `json:"tcpTimeout"`
|
||||
// tcpFinTimeout is the timeout value used for IPVS TCP sessions after receiving a FIN.
|
||||
// The default value is 0, which preserves the current timeout value on the system.
|
||||
TCPFinTimeout metav1.Duration `json:"tcpFinTimeout"`
|
||||
// udpTimeout is the timeout value used for IPVS UDP packets.
|
||||
// The default value is 0, which preserves the current timeout value on the system.
|
||||
UDPTimeout metav1.Duration `json:"udpTimeout"`
|
||||
}
|
||||
|
||||
// KubeProxyConntrackConfiguration contains conntrack settings for
|
||||
|
|
|
@ -143,6 +143,9 @@ func (in *KubeProxyIPVSConfiguration) DeepCopyInto(out *KubeProxyIPVSConfigurati
|
|||
*out = make([]string, len(*in))
|
||||
copy(*out, *in)
|
||||
}
|
||||
out.TCPTimeout = in.TCPTimeout
|
||||
out.TCPFinTimeout = in.TCPFinTimeout
|
||||
out.UDPTimeout = in.UDPTimeout
|
||||
return
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue