mirror of
https://github.com/k3s-io/kubernetes.git
synced 2025-07-28 14:07:14 +00:00
Merge pull request #92836 from aojea/minsyncperiod
kube-proxy iptables min-sync-period default 1sec
This commit is contained in:
commit
76e3b255e1
@ -21,7 +21,7 @@ hostnameOverride: ""
|
|||||||
iptables:
|
iptables:
|
||||||
masqueradeAll: false
|
masqueradeAll: false
|
||||||
masqueradeBit: 14
|
masqueradeBit: 14
|
||||||
minSyncPeriod: 0s
|
minSyncPeriod: 1s
|
||||||
syncPeriod: 30s
|
syncPeriod: 30s
|
||||||
ipvs:
|
ipvs:
|
||||||
excludeCIDRs: null
|
excludeCIDRs: null
|
||||||
|
@ -21,7 +21,7 @@ hostnameOverride: ""
|
|||||||
iptables:
|
iptables:
|
||||||
masqueradeAll: false
|
masqueradeAll: false
|
||||||
masqueradeBit: 14
|
masqueradeBit: 14
|
||||||
minSyncPeriod: 0s
|
minSyncPeriod: 1s
|
||||||
syncPeriod: 30s
|
syncPeriod: 30s
|
||||||
ipvs:
|
ipvs:
|
||||||
excludeCIDRs: null
|
excludeCIDRs: null
|
||||||
|
@ -61,6 +61,9 @@ func SetDefaults_KubeProxyConfiguration(obj *kubeproxyconfigv1alpha1.KubeProxyCo
|
|||||||
if obj.IPTables.SyncPeriod.Duration == 0 {
|
if obj.IPTables.SyncPeriod.Duration == 0 {
|
||||||
obj.IPTables.SyncPeriod = metav1.Duration{Duration: 30 * time.Second}
|
obj.IPTables.SyncPeriod = metav1.Duration{Duration: 30 * time.Second}
|
||||||
}
|
}
|
||||||
|
if obj.IPTables.MinSyncPeriod.Duration == 0 {
|
||||||
|
obj.IPTables.MinSyncPeriod = metav1.Duration{Duration: 1 * time.Second}
|
||||||
|
}
|
||||||
if obj.IPVS.SyncPeriod.Duration == 0 {
|
if obj.IPVS.SyncPeriod.Duration == 0 {
|
||||||
obj.IPVS.SyncPeriod = metav1.Duration{Duration: 30 * time.Second}
|
obj.IPVS.SyncPeriod = metav1.Duration{Duration: 30 * time.Second}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user