Merge pull request #120808 from aroradaman/proxy-conntrack-udp-timeouts
Adding option to configure UDP timeouts for conntrack Kubernetes-commit: b47aa1c20e579501cfa69d359a516157b1d5a98d
This commit is contained in:
commit
61ae7e47e9
|
@ -85,6 +85,14 @@ type KubeProxyConntrackConfiguration struct {
|
|||
// in CLOSE_WAIT state will remain in the conntrack
|
||||
// table. (e.g. '60s'). Must be greater than 0 to set.
|
||||
TCPCloseWaitTimeout *metav1.Duration `json:"tcpCloseWaitTimeout"`
|
||||
// udpTimeout is how long an idle UDP conntrack entry in
|
||||
// UNREPLIED state will remain in the conntrack table
|
||||
// (e.g. '30s'). Must be greater than 0 to set.
|
||||
UDPTimeout metav1.Duration `json:"udpTimeout"`
|
||||
// udpStreamTimeout is how long an idle UDP conntrack entry in
|
||||
// ASSURED state will remain in the conntrack table
|
||||
// (e.g. '300s'). Must be greater than 0 to set.
|
||||
UDPStreamTimeout metav1.Duration `json:"udpStreamTimeout"`
|
||||
}
|
||||
|
||||
// KubeProxyWinkernelConfiguration contains Windows/HNS settings for
|
||||
|
|
|
@ -115,6 +115,8 @@ func (in *KubeProxyConntrackConfiguration) DeepCopyInto(out *KubeProxyConntrackC
|
|||
*out = new(v1.Duration)
|
||||
**out = **in
|
||||
}
|
||||
out.UDPTimeout = in.UDPTimeout
|
||||
out.UDPStreamTimeout = in.UDPStreamTimeout
|
||||
return
|
||||
}
|
||||
|
||||
|
|
2
go.mod
2
go.mod
|
@ -46,6 +46,6 @@ require (
|
|||
replace (
|
||||
k8s.io/api => k8s.io/api v0.0.0-20231011070906-133964c1133a
|
||||
k8s.io/apimachinery => k8s.io/apimachinery v0.0.0-20231011070637-1ca6c696c8e4
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20231011071243-cf4002bbbf85
|
||||
k8s.io/client-go => k8s.io/client-go v0.0.0-20231011150411-57d597c1d633
|
||||
k8s.io/component-base => k8s.io/component-base v0.0.0-20231011071914-d2d2799059b6
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue