give the kubernetes service client ip session affinity

This commit is contained in:
Mike Danese
2016-03-17 09:34:00 -07:00
parent c412dcba7f
commit e21ebbcac4
2 changed files with 18 additions and 18 deletions

View File

@@ -210,7 +210,7 @@ func (c *Controller) CreateOrUpdateMasterServiceIfNeeded(serviceName string, ser
// maintained by this code, not by the pod selector
Selector: nil,
ClusterIP: serviceIP.String(),
SessionAffinity: api.ServiceAffinityNone,
SessionAffinity: api.ServiceAffinityClientIP,
Type: serviceType,
},
}