File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
images/router/haproxy/conf Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -511,7 +511,7 @@ backend {{genBackendNamePrefix $cfg.TLSTermination}}:{{$cfgIdx}}
511511{{- if ne (env "ROUTER_SYSLOG_ADDRESS") ""}}
512512 option tcplog
513513{{- end }}
514- {{- with $balanceAlgo := firstMatch "roundrobin|leastconn|source" (index $cfg.Annotations "haproxy.router.openshift.io/balance") (env "ROUTER_LOAD_BALANCE_ALGORITHM") }}
514+ {{- with $balanceAlgo := firstMatch "roundrobin|leastconn|source" (index $cfg.Annotations "haproxy.router.openshift.io/balance") (env "ROUTER_TCP_BALANCE_SCHEME" (env " ROUTER_LOAD_BALANCE_ALGORITHM") ) }}
515515 balance {{ $balanceAlgo }}
516516 {{- else }}
517517 balance {{ if gt $cfg.ActiveServiceUnits 1 }}roundrobin{{ else }}source{{ end }}
You can’t perform that action at this time.
0 commit comments