kubernetes/pkg/api/v1
Kubernetes Submit Queue b65f3cc8dd Merge pull request #49850 from m1093782566/service-session-timeout
Automatic merge from submit-queue (batch tested with PRs 49850, 47782, 50595, 50730, 51341)

Paramaterize `stickyMaxAgeMinutes` for service in API

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

Currently I find `stickyMaxAgeMinutes` for a session affinity type service is hard code to 180min. There is a TODO comment, see

https://github.com/kubernetes/kubernetes/blob/master/pkg/proxy/iptables/proxier.go#L205

I think the seesion sticky max time varies from service to service and users may not aware of it since it's hard coded in all proxier.go - iptables, userspace and winuserspace.

Once we parameterize it in API, users can set/get the values for their different services.

Perhaps, we can introduce a new field `api.ClientIPAffinityConfig` in `api.ServiceSpec`.

There is an initial discussion about it in sig-network group. See,

https://groups.google.com/forum/#!topic/kubernetes-sig-network/i-LkeHrjs80

**Which issue this PR fixes**: 

fixes #49831

**Special notes for your reviewer**:

**Release note**:

```release-note
Paramaterize session affinity timeout seconds in service API for Client IP based session affinity.
```
2017-08-25 20:43:30 -07:00
..
endpoints Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
helper Merge pull request #48922 from ConnorDoyle/integer-resources-as-default 2017-08-16 19:50:15 -07:00
node Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
pod Make metav1.(Micro)?Time functions take pointers 2017-08-17 11:24:28 +02:00
resource Replace hard-code "cpu" and "memory" to consts 2017-08-16 16:37:50 +08:00
service Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
validation auto-gen 2017-08-17 15:42:05 +08:00
backward_compatibility_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
conversion_test.go manually fix unit tests in pkg/api/v1 2017-06-22 11:30:52 -07:00
conversion.go remove unnecessary field conversions 2017-08-23 10:52:22 -04:00
defaults_test.go set default HostPathType to empty 2017-08-23 14:05:21 +08:00
defaults.go set default HostPathType to empty 2017-08-23 14:05:21 +08:00
doc.go split v1/register.go to regsiter.go and builder.go 2017-06-22 10:21:42 -07:00
generate.go run hack/update-all 2017-06-22 11:31:03 -07:00
OWNERS Remove myself from a bunch of places 2017-07-20 12:10:46 +02:00
register.go rename pkg/api/v1/builder.go to register.go to be consistent with others 2017-07-21 14:03:32 -07:00
zz_generated.conversion.go auto gen code 2017-08-25 18:28:14 +08:00
zz_generated.defaults.go auto-gen 2017-08-23 15:23:34 +08:00