Commit a3df4bf7 authored by Kubernetes Submit Queue's avatar Kubernetes Submit Queue Committed by GitHub

Merge pull request #48085 from shyamjvs/reduce-kubeproxy-logs

Automatic merge from submit-queue (batch tested with PRs 44058, 48085, 48077, 48076, 47823) Move iptables logging in kubeproxy from Errorf to V(2).Infof Fixes https://github.com/kubernetes/kubernetes/issues/48052 This will stop fluentd from OOM'ing in reasonably large clusters with services due to kube-proxy. You'll still get iptables printed on setups which run at >= v2, but we can at least optout. @bowei Does this look reasonable? cc @kubernetes/sig-network-misc
parents 6a28658c d354e0bf
......@@ -1571,7 +1571,8 @@ func (proxier *Proxier) syncProxyRules() {
glog.V(5).Infof("Restoring iptables rules: %s", proxier.iptablesData.Bytes())
err = proxier.iptables.RestoreAll(proxier.iptablesData.Bytes(), utiliptables.NoFlushTables, utiliptables.RestoreCounters)
if err != nil {
glog.Errorf("Failed to execute iptables-restore: %v\nRules:\n%s", err, proxier.iptablesData.Bytes())
glog.Errorf("Failed to execute iptables-restore: %v", err)
glog.V(2).Infof("Rules:\n%s", proxier.iptablesData.Bytes())
// Revert new local ports.
revertPorts(replacementPortsMap, proxier.portsMap)
return
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment