1
0
Fork 0

feat(rancher): add HealthCheck labels.

This commit is contained in:
Fernandez Ludovic 2017-12-16 14:21:33 +01:00 committed by Traefiker
parent c884c7bb8a
commit a1f47cb4db
2 changed files with 17 additions and 0 deletions

View file

@ -23,6 +23,13 @@
extractorFunc = "{{getMaxConnExtractorFunc $backend}}"
{{end}}
{{if hasHealthCheckLabels $backend}}
[backends.backend-{{$backendName}}.healthCheck]
path = "{{getHealthCheckPath $backend}}"
port = {{getHealthCheckPort $backend}}
interval = "{{getHealthCheckInterval $backend}}"
{{end}}
{{range $index, $ip := $backend.Containers}}
[backends.backend-{{$backendName}}.servers.server-{{$index}}]
url = "{{getProtocol $backend}}://{{$ip}}:{{getPort $backend}}"