Skip to content

Commit 1055ae0

Browse files
adding timeout annotations to be_tcp_* and be_secure_*
1 parent bb2bed6 commit 1055ae0

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

images/router/haproxy/conf/haproxy-config.template

+6
Original file line numberDiff line numberDiff line change
@@ -262,6 +262,9 @@ backend be_tcp_{{$cfgIdx}}
262262
{{ else }}
263263
balance {{ env "ROUTER_TCP_BALANCE_SCHEME" "source" }}
264264
{{ end }}
265+
{{with $value := index $cfg.Annotations "router.openshift.io/haproxy.timeout"}}
266+
timeout server {{$value}}
267+
{{end}}
265268
hash-type consistent
266269
timeout check 5000ms
267270
{{ range $serviceUnitName, $weight := $cfg.ServiceUnitNames }}
@@ -285,6 +288,9 @@ backend be_secure_{{$cfgIdx}}
285288
{{ else }}
286289
balance leastconn
287290
{{ end }}
291+
{{with $value := index $cfg.Annotations "router.openshift.io/haproxy.timeout"}}
292+
timeout server {{$value}}
293+
{{end}}
288294
timeout check 5000ms
289295
cookie {{$cfg.RoutingKeyName}} insert indirect nocache httponly secure
290296
{{ range $serviceUnitName, $weight := $cfg.ServiceUnitNames }}

0 commit comments

Comments
 (0)