Adds support for configuring stickness per Ingress

This commit is contained in:
Ricardo Pchevuzinske Katz 2017-02-10 12:24:16 -02:00
parent 79e186cb77
commit 6809319318
7 changed files with 112 additions and 15 deletions

View file

@ -186,7 +186,7 @@ http {
{{range $name, $upstream := $backends}}
upstream {{$upstream.Name}} {
{{ if $upstream.StickySession.Enabled }}
sticky hash={{$upstream.StickySession.Hash}} route={{$upstream.StickySession.Hash}} httponly;
sticky hash={{$upstream.StickySession.Hash}} name={{$upstream.StickySession.Name}} httponly;
{{ else }}
least_conn;
{{ end }}