k3s/examples
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
..
cluster-dns add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
cockroachdb Update example to CockroachDB v1.0.5 2017-08-24 14:42:52 -04:00
elasticsearch add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
explorer Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
guestbook add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
guestbook-go Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
https-nginx Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
javaee add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
javaweb-tomcat-sidecar add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
job add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
kubectl-container add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
meteor Paramaterize stickyMaxAgeMinutes for service in API 2017-08-25 17:44:47 +08:00
mysql-cinder-pd add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
mysql-wordpress-pd Update wordpress to 4.8.0 2017-07-20 10:08:49 +08:00
newrelic update related files 2017-08-24 17:49:18 +08:00
newrelic-infrastructure NR Infrastructure agent example daemonset 2017-08-17 10:09:52 -07:00
nodesjs-mongodb add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
oms update related files 2017-08-24 17:49:18 +08:00
openshift-origin add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
persistent-volume-provisioning add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
phabricator add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
podsecuritypolicy/rbac update to rbac v1 in yaml file 2017-08-21 17:29:37 +08:00
runtime-constraints add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
selenium add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
sharing-clusters Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
spark add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
storage Add termination gracePeriod 2017-07-26 17:01:09 +02:00
storm add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
sysdig-cloud update related files 2017-08-24 17:49:18 +08:00
volumes Reduce one time url direction 2017-08-18 11:09:11 +08:00
BUILD Use buildozer to delete licenses() rules except under third_party/ 2017-08-11 09:32:39 -07:00
OWNERS add eparis ass approver for test and examples 2017-03-30 11:58:49 -04:00
README.md add redirect notice in all readme files 2017-07-14 17:18:01 +02:00
doc.go Use Go canonical import paths 2016-07-16 13:48:21 -04:00
examples_test.go Remove redis-proxy example 2017-04-23 16:59:23 +02:00
guidelines.md Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00
pod examples/pod: Revert the previous changes. 2016-09-13 15:09:25 -07:00
scheduler-policy-config-with-extender.json Added Bind method to Scheduler Extender 2017-06-05 09:44:53 -07:00
scheduler-policy-config.json move hardPodAffinitySymmetricWeight to scheduler policy config 2017-05-26 14:04:37 +08:00
simple-nginx.md Update docs/ URLs to point to proper locations 2017-06-05 22:13:54 -07:00