k3s/pkg/proxy
Kubernetes Submit Queue 28e78ec987
Merge pull request #65755 from wojtek-t/optimize_kube_proxy
Automatic merge from submit-queue (batch tested with PRs 65882, 65896, 65755, 60549, 65927). If you want to cherry-pick this change to another branch, please follow the instructions <a href="https://github.com/kubernetes/community/blob/master/contributors/devel/cherry-picks.md">here</a>.

Avoid printing some service comments in iptables rules

According to some profiles, with large number of endpoints in the system, comments mentioning the service in appropriate iptables rules may be responsible for 40% of all iptables contents.

Given that ~70% of memory usage of kube-proxy seems to be because of generated iptables rules, the overall saving may be at the level of 30% or so.

OTOH, we sacrifise a bit understandability of iptables, but this PR only changes some of iptables that contribute to the most painful rules.

@thockin @danwinship @dcbw - thoughts?

Ref #65441
2018-07-07 18:41:09 -07:00
..
apis/kubeproxyconfig Add missing error handling in schema-related code 2018-06-23 21:06:32 +10:00
config Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
healthcheck Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
iptables Merge pull request #65755 from wojtek-t/optimize_kube_proxy 2018-07-07 18:41:09 -07:00
ipvs Merge pull request #65264 from xujieasd/ipvs-bind-address 2018-07-06 05:54:39 -07:00
metrics
userspace Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
util Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
winkernel Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
winuserspace Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
BUILD Run hack/update-bazel.sh 2018-06-22 16:22:57 -07:00
OWNERS add me to iptables/kube-proxy reviewers 2018-02-22 17:36:57 -05:00
doc.go
endpoints.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
endpoints_test.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
service.go LoadBalancerStatus make use of generated deep copy method 2018-03-28 14:08:50 +08:00
service_test.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00
types.go [kube-proxy] Mass service/endpoint info functions rename and comments 2018-02-27 11:14:02 -08:00