Add support for sticky sessions

This commit is contained in:
Manuel de Brito Fontes 2016-04-28 01:03:59 -03:00
parent a86a682429
commit 8bf7007c40
3 changed files with 13 additions and 5 deletions

View file

@ -694,6 +694,8 @@ func (lbc *loadBalancerController) getUpstreamServers(data []interface{}) ([]*ng
return aUpstreams, aServers
}
// createUpstreams creates the NGINX upstreams for each service referenced in
// Ingress rules. The servers inside the upstream are endpoints.
func (lbc *loadBalancerController) createUpstreams(data []interface{}) map[string]*nginx.Upstream {
upstreams := make(map[string]*nginx.Upstream)