k3s/pkg/master
Kubernetes Submit Queue 0ba80021c5
Merge pull request #56690 from redbaron/master
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>.

Disable session affinity for internal kuberntes service

Under following conditions session affinity leads to a deadlock:
  - Self hosted controller-manager, where it talks to API servers
    via kubernetes service ClusterIP
  - default master-count reconcilier is used
  - --apiserver-count is set to >1 according to the help message
  - number of responsive APIServers goes below `apiserver-count`
  - all controller-managers happen to be hashed to APIServers which
    are down.

What then happens is that controller managers never be able to
contact APIServer, despite correctly working APIServer available.

Less serious outages also possible for other consumers of kubernetes
service, such as operators, kube-dns, flannel & calico, etc.  There is
always non zero chance, that given consumer is hashed  to an apiserver
which is down.

This reverts PR https://github.com/kubernetes/kubernetes/pull/23129

/sig api-machinery
CCing:
  -  author and approver of reverted PR: @mikedanese, @lavalamp 
  - other affected users which spoke up: @jsravn, @tatsuhiro-t 


```release-note
NONE
```
2018-05-10 04:20:40 -07:00
..
controller/crdregistration Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
ports controller-manager: add SecureServingOptions 2018-02-13 11:16:47 +01:00
reconcilers Autogenerated: hack/update-bazel.sh 2018-02-16 13:43:01 -08:00
tunneler Merge pull request #60068 from wojtek-t/ssl_key_longer_timeout 2018-02-21 18:09:47 -08:00
BUILD remove KUBE_API_VERSIONS 2018-04-26 08:27:49 -04:00
OWNERS Add enj as reviewer to OWNERS 2017-08-17 20:42:46 -04:00
client_ca_hook.go fix all the typos across the project 2018-02-11 11:04:14 +08:00
client_ca_hook_test.go pkg/apis/core: mechanical import fixes in dependencies 2017-11-09 12:14:08 +01:00
client_util.go Client ca post start hook now checks if the system namespace already exists 2018-01-30 16:19:33 -08:00
controller.go Merge pull request #56690 from redbaron/master 2018-05-10 04:20:40 -07:00
controller_test.go Disable session affinity for internal kuberntes service 2017-12-01 11:09:57 +00:00
doc.go
import_known_versions.go remove KUBE_API_VERSIONS 2018-04-26 08:27:49 -04:00
import_known_versions_test.go simplify api registration 2018-05-08 18:33:50 -04:00
master.go eliminate indirection from type registration 2018-04-25 09:02:31 -04:00
master_openapi_test.go Remove request context mapper 2018-04-18 17:03:31 -04:00
master_test.go simplify api registration 2018-05-08 18:33:50 -04:00
services.go Merge pull request #51249 from tengqm/service-ip-cidr 2018-02-24 18:43:39 -08:00