mirror of
https://github.com/traefik/traefik.git
synced 2025-11-29 06:31:16 +01:00
Adds definitions to backend kv template for health checking
This commit is contained in:
parent
7d6c778211
commit
3eaeb81831
@ -19,6 +19,13 @@
|
|||||||
sticky = {{$sticky}}
|
sticky = {{$sticky}}
|
||||||
{{end}}
|
{{end}}
|
||||||
|
|
||||||
|
{{$healthCheck := Get "" . "/healthcheck/" "path"}}
|
||||||
|
{{with $healthCheck}}
|
||||||
|
[backends."{{Last $backend}}".healthCheck]
|
||||||
|
path = "{{$healthCheck}}"
|
||||||
|
interval = "{{ Get "30s" $backend "/healthcheck/" "interval" }}"
|
||||||
|
{{end}}
|
||||||
|
|
||||||
{{$maxConnAmt := Get "" . "/maxconn/" "amount"}}
|
{{$maxConnAmt := Get "" . "/maxconn/" "amount"}}
|
||||||
{{$maxConnExtractorFunc := Get "" . "/maxconn/" "extractorfunc"}}
|
{{$maxConnExtractorFunc := Get "" . "/maxconn/" "extractorfunc"}}
|
||||||
{{with $maxConnAmt}}
|
{{with $maxConnAmt}}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user