Skip to content

Commit 2edc046

Browse files
author
yangweiwei
committed
Modify the log of kube-proxy
Modify the warning log of kube-proxy when we run kube-proxy server with --proxy-mode, but in the config file, we omit it. Then it logs like ""{"log":"W0905 09:14:40.321571 1 server_others.go:249] Flag proxy-mode=\"\" unknown, assuming iptables proxy\n","stream":"stderr", "time":"2019-09-05T09:14:40.321858964Z"} This may lead to confusion. I think it should me modefied.
1 parent 6348200 commit 2edc046

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/kube-proxy/app/server_others.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -326,7 +326,7 @@ func getProxyMode(proxyMode string, khandle ipvs.KernelHandler, ipsetver ipvs.IP
326326
case proxyModeIPVS:
327327
return tryIPVSProxy(khandle, ipsetver, kcompat)
328328
}
329-
klog.Warningf("Flag proxy-mode=%q unknown, assuming iptables proxy", proxyMode)
329+
klog.Warningf("Unknown proxy mode %q, assuming iptables proxy", proxyMode)
330330
return tryIPTablesProxy(kcompat)
331331
}
332332

0 commit comments

Comments
 (0)