Don't log whether we're using iptables --random-fully
This commit is contained in:
parent
ede025af1b
commit
8edd656238
@ -115,9 +115,6 @@ func (kl *Kubelet) syncNetworkUtil() {
|
|||||||
}
|
}
|
||||||
if kl.iptClient.HasRandomFully() {
|
if kl.iptClient.HasRandomFully() {
|
||||||
masqRule = append(masqRule, "--random-fully")
|
masqRule = append(masqRule, "--random-fully")
|
||||||
klog.V(3).Info("Using `--random-fully` in the MASQUERADE rule for iptables")
|
|
||||||
} else {
|
|
||||||
klog.V(2).Info("Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it")
|
|
||||||
}
|
}
|
||||||
if _, err := kl.iptClient.EnsureRule(utiliptables.Append, utiliptables.TableNAT, KubePostroutingChain, masqRule...); err != nil {
|
if _, err := kl.iptClient.EnsureRule(utiliptables.Append, utiliptables.TableNAT, KubePostroutingChain, masqRule...); err != nil {
|
||||||
klog.Errorf("Failed to ensure SNAT rule for packets marked by %v in %v chain %v: %v", KubeMarkMasqChain, utiliptables.TableNAT, KubePostroutingChain, err)
|
klog.Errorf("Failed to ensure SNAT rule for packets marked by %v in %v chain %v: %v", KubeMarkMasqChain, utiliptables.TableNAT, KubePostroutingChain, err)
|
||||||
|
@ -908,9 +908,6 @@ func (proxier *Proxier) syncProxyRules() {
|
|||||||
}
|
}
|
||||||
if proxier.iptables.HasRandomFully() {
|
if proxier.iptables.HasRandomFully() {
|
||||||
masqRule = append(masqRule, "--random-fully")
|
masqRule = append(masqRule, "--random-fully")
|
||||||
klog.V(3).Info("Using `--random-fully` in the MASQUERADE rule for iptables")
|
|
||||||
} else {
|
|
||||||
klog.V(3).Info("Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it")
|
|
||||||
}
|
}
|
||||||
writeLine(proxier.natRules, masqRule...)
|
writeLine(proxier.natRules, masqRule...)
|
||||||
|
|
||||||
|
@ -1859,9 +1859,6 @@ func (proxier *Proxier) createAndLinkeKubeChain() {
|
|||||||
}
|
}
|
||||||
if proxier.iptables.HasRandomFully() {
|
if proxier.iptables.HasRandomFully() {
|
||||||
masqRule = append(masqRule, "--random-fully")
|
masqRule = append(masqRule, "--random-fully")
|
||||||
klog.V(3).Info("Using `--random-fully` in the MASQUERADE rule for iptables")
|
|
||||||
} else {
|
|
||||||
klog.V(2).Info("Not using `--random-fully` in the MASQUERADE rule for iptables because the local version of iptables does not support it")
|
|
||||||
}
|
}
|
||||||
writeLine(proxier.natRules, masqRule...)
|
writeLine(proxier.natRules, masqRule...)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user