feat(consulcatalog): add HealthCheck tags.
This commit is contained in:
parent
c9b871a03a
commit
97ce77169a
3 changed files with 76 additions and 0 deletions
|
@ -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}}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue