Reduce amount of allocations in kube-proxy

This commit is contained in:
wojtekt
2018-08-28 15:18:58 +02:00
parent 963adda7f9
commit 8fb365df32
4 changed files with 20 additions and 19 deletions

View File

@@ -163,6 +163,7 @@ func NewFakeProxier(ipt utiliptables.Interface, ipvs utilipvs.Interface, ipset u
ipvsScheduler: DefaultScheduler,
ipGetter: &fakeIPGetter{nodeIPs: nodeIPs},
iptablesData: bytes.NewBuffer(nil),
filterChainsData: bytes.NewBuffer(nil),
natChains: bytes.NewBuffer(nil),
natRules: bytes.NewBuffer(nil),
filterChains: bytes.NewBuffer(nil),