k3s/cmd
Kubernetes Submit Queue 6d1da16456 Merge pull request #47731 from jsravn/use-endpoints-cache-for-endpoint-controller
Automatic merge from submit-queue

Use endpoints informer for the endpoint controller

This substantially reduces the number of API calls made by the endpoint
controller. Currently the controller makes an API call per endpoint for
each service that is synced. When the 30s resync is triggered, this
results in an API call for every single endpoint in the cluster. This
quickly exceeds the default qps/burst limit of 20/30 even in small
clusters, leading to delays in endpoint updates.

This change modifies the controller to use the endpoint informer cache
for all endpoint GETs. This means we only make API calls for changes in
endpoints. As a result, qps only depends on the pod activity in the
cluster, rather than the number of services.



**What this PR does / why we need it**:

Address endpoint update delays as described in https://github.com/kubernetes/kubernetes/issues/47597.

**Which issue this PR fixes** *(optional, in `fixes #<issue number>(, fixes #<issue_number>, ...)` format, will close that issue when PR gets merged)*: fixes #

https://github.com/kubernetes/kubernetes/issues/47597

**Special notes for your reviewer**:

**Release note**:

```release-note
```
2017-06-27 05:20:12 -07:00
..
clicheck More cli sanity verifications 2017-05-18 15:44:49 -03:00
cloud-controller-manager run hack/update-all 2017-06-22 11:31:03 -07:00
gendocs autogenerated 2017-04-14 10:40:57 -07:00
genkubedocs autogenerated 2017-04-14 10:40:57 -07:00
genman autogenerated 2017-04-14 10:40:57 -07:00
genslateyaml autogenerated 2017-04-14 10:40:57 -07:00
genswaggertypedocs autogenerated 2017-04-14 10:40:57 -07:00
genutils Add fatal message 2017-06-04 09:42:08 +08:00
genyaml autogenerated 2017-04-14 10:40:57 -07:00
gke-certificates-controller run hack/update-all 2017-06-22 11:31:03 -07:00
hyperkube Merge pull request #46276 from karataliu/removeDupMsg 2017-06-26 02:11:54 -07:00
kube-apiserver Merge pull request #47443 from p0lyn0mial/use_incluster_cfg_when_creating_ext_informers 2017-06-26 17:48:01 -07:00
kube-controller-manager Merge pull request #47731 from jsravn/use-endpoints-cache-for-endpoint-controller 2017-06-27 05:20:12 -07:00
kube-proxy run hack/update-all 2017-06-22 11:31:03 -07:00
kubeadm Merge pull request #48049 from luxas/kubeadm_rolling_proxy 2017-06-27 04:29:39 -07:00
kubectl Convert go_binary linkstamp to x_defs 2017-06-08 14:59:55 -07:00
kubelet Merge pull request #47783 from NickrenREN/containerruntime 2017-06-23 08:29:28 -07:00
kubemark run hack/update-all 2017-06-22 11:31:03 -07:00
libs/go2idl manually fix protogen 2017-06-22 11:30:58 -07:00
linkcheck autogenerated 2017-04-14 10:40:57 -07:00
mungedocs Fix link tests in mungedocs 2017-06-05 22:37:20 -07:00
BUILD Merge pull request #42070 from luxas/remove_kube_discovery 2017-03-04 12:58:23 -08:00
OWNERS Updated top level owners file to match new format 2017-01-19 11:29:16 -08:00