k3s/pkg/proxy
Kubernetes Submit Queue c11ae9d21e
Merge pull request #60306 from danwinship/proxier-connstate-new
Automatic merge from submit-queue. 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>.

Only run connection-rejecting rules on new connections

Kube-proxy has two iptables chains full of rules to reject incoming connections to services that don't have any endpoints. Currently these rules get tested against all incoming packets, but that's unnecessary; if a connection to a given service has already been established, then we can't have been rejecting connections to that service. By only checking the first packet in each new connection, we can get rid of a lot of unnecessary checks on incoming traffic.

Fixes #56842

**Release note**:
```release-note
Additional changes to iptables kube-proxy backend to improve performance on clusters with very large numbers of services.
```
2018-02-24 16:19:56 -08:00
..
apis/kubeproxyconfig Merge pull request #57550 from m1093782566/cleanup-mode 2018-02-23 04:01:33 -08:00
config Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
healthcheck Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
iptables Merge pull request #60306 from danwinship/proxier-connstate-new 2018-02-24 16:19:56 -08:00
ipvs Remove conntrack entry on udp rule add. 2018-02-22 23:34:42 -08:00
metrics add proxy metrics in app level 2017-10-16 21:10:51 +08:00
userspace Remove conntrack entry on udp rule add. 2018-02-22 23:34:42 -08:00
util Remove conntrack entry on udp rule add. 2018-02-22 23:34:42 -08:00
winkernel fix all the typos across the project 2018-02-11 11:04:14 +08:00
winuserspace Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
BUILD Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
OWNERS add m1093782566 to pkg/proxy/OWNERS 2017-10-13 11:39:25 +08:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
endpoints.go proxy endpoints part changes 2018-02-09 17:20:47 +08:00
endpoints_test.go proxy endpoints part changes 2018-02-09 17:20:47 +08:00
service.go proxy service part changes 2018-02-09 17:20:44 +08:00
service_test.go proxy service part changes 2018-02-09 17:20:44 +08:00
types.go abstract proxy servicePort and endpoints 2018-02-07 11:46:31 +08:00