feat(consulcatalog): add HealthCheck tags.

This commit is contained in:
Fernandez Ludovic 2018-01-01 03:49:06 +01:00 committed by Traefiker
parent c9b871a03a
commit 97ce77169a
3 changed files with 76 additions and 0 deletions

View file

@ -26,6 +26,14 @@
amount = {{ $maxConn.Amount }}
{{end}}
{{ $healthCheck := getHealthCheck $service.Attributes }}
{{if $healthCheck }}
[backends.backend-{{ $sname }}.healthCheck]
path = "{{ $healthCheck.Path }}"
port = {{ $healthCheck.Port }}
interval = "{{ $healthCheck.Interval }}"
{{end}}
{{end}}
{{range $index, $node := .Nodes}}